Skip to content

Commit

Permalink
transfer repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamshidi799 committed Jan 3, 2021
1 parent f637e1d commit b11a1b4
Show file tree
Hide file tree
Showing 178 changed files with 26,610 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# Mac OSX
.DS_Store

# Vim swap files
*.swp
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:latest

ENV APP_ROOT /src

RUN mkdir ${APP_ROOT}
WORKDIR ${APP_ROOT}
ADD . ${APP_ROOT}

RUN npm install
RUN npm run build

ENV HOST 0.0.0.0
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ai-challenge-app

> AI Challenge App
## Build Setup

``` bash
# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate
```

For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).
183 changes: 183 additions & 0 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
//accounts
export const SIGN_UP = {
name: 'SIGN_UP',
method: 'post',
payload: 'data',
url: '/accounts/signup',
}

export const RESET_PASSWORD = {
name: 'RESET_PASSWORD',
method: 'post',
payload: 'data',
url: '/accounts/password/reset',
}

export const RESET_PASSWORD_CONFIRM = {
name: 'RESET_PASSWORD_CONFIRM',
method: 'post',
payload: 'data',
url: '/accounts/password/reset/confirm',
}

export const CHANGE_PASSWORD = {
name: 'CHANGE_PASSWORD',
method: 'post',
payload: 'data',
url: '/accounts/password/change',
}

export const EDIT_PROFILE = {
name: 'EDIT_PROFILE',
method: 'put',
payload: 'data',
url: '/accounts/profile',
}

//team
export const CREATE_TEAM = {
name: 'CREATE_TEAM',
method: 'post',
payload: 'data',
url: '/participation/team',
}

export const LEAVE_TEAM = {
name: 'LEAVE_TEAM',
method: 'delete',
url: '/participation/team',
}

export const EDIT_TEAM = {
name: 'EDIT_TEAM',
method: 'put',
payload: 'data',
url: '/participation/team',
}

export const TEAM_DETAIL = {
name: 'TEAM_DETAIL',
method: 'get',
url: '/participation/team',
}

export const INVITE = {
name: 'INVITE',
method: 'post',
payload: 'data',
url: '/participation/invitation/invite',
}

export const RECEIVED_INVITATIONS = {
name: 'RECEIVED_INVITATIONS',
method: 'get',
url: '/participation/invitation/invitations-to-me',
}

export const SENT_INVITATIONS = {
name: 'SENT_INVITATIONS',
method: 'get',
url: '/participation/invitation/invitations-to-others',
}

export const ANSWER_INVITATION = {
name: 'ANSWER_INVITATION',
method: 'post',
url: '/participation/invitation',
payload: 'data',
slug: 'id',
}

export const TOGGLE_MULTI_FRIENDLY = {
name: 'TOGGLE_MULTI_FRIENDLY',
method: 'post',
url: '/participation/team/multi-friendly',
}

//notifications
export const NOTIFICATIONS = {
name: 'NOTIFICATIONS',
method: 'get',
url: '/subscribe/public-notifications',
}

//challenge
export const SUBMIT_CODE = {
name: 'SUBMIT_CODE',
method: 'post',
payload: 'data',
url: '/challenge/submission/submit',
}

export const SUBMIT_LARGE_CODE = {
name: 'SUBMIT_LARGE_CODE',
method: 'post',
payload: 'data',
url: 'https://analysaur.ir/api/storage/file/',
}

export const VIEW_SUBMISSIONS = {
name: 'VIEW_SUBMISSIONS',
method: 'get',
url: '/challenge/submission/submissions',
}

export const CHANGE_FINAL_SUBMISSION = {
name: 'CHANGE_FINAL_SUBMISSION',
method: 'put',
slug: 'id',
url: '/challenge/submission/change_final',
}

//games
export const REQUEST_FRIENDLY_MATCH = {
name: 'REQUEST_FRIENDLY_MATCH',
method: 'post',
url: '/challenge/game/friendly',
payload: 'data',
}

export const VIEW_MATCHES = {
name: 'VIEW_MATCHES',
method: 'get',
url: '/challenge/games',
params: ['offset', 'count'],
}

export const VIEW_LOBBY = {
name: 'VIEW_LOBBY',
method: 'get',
url: '/challenge/game/lobby',
}

// scoreboard
export const GET_SCOREBOARD = {
friendly: {
name: 'GET_FRIENDLY_SCOREBOARD',
method: 'get',
url: '/scoreboard/friendly',
},
seeding: {
name: 'GET_CHALLENGE_SCOREBOARD',
method: 'get',
url: '/scoreboard/challenge',
},
groups: {
name: 'GET_GROUPS_SCOREBOARD',
method: 'get',
url: '/scoreboard/league',
},
}

export const GET_CHALLENGE = {
name: 'PRIMARY_CHALLENGE',
method: 'get',
url: '/challenge/challenges',
slug: 'id',
}

export const GAME_STATS = {
name: 'GAME_STATS',
method: 'get',
url: '/challenge/game/stats',
}
7 changes: 7 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ASSETS

**This directory is not required, you can delete it if you don't want to use it.**

This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).
Binary file added assets/fonts/Chopsic.eot
Binary file not shown.
Binary file added assets/fonts/Chopsic.ttf
Binary file not shown.
Binary file added assets/fonts/Chopsic.woff
Binary file not shown.
Binary file added assets/fonts/Chopsic.woff2
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Black-FD.eot
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Black-FD.ttf
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Black-FD.woff
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Black-FD.woff2
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Bold-FD.eot
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Bold-FD.ttf
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Bold-FD.woff
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Bold-FD.woff2
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-FD.eot
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-FD.ttf
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-FD.woff
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-FD.woff2
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Light-FD.eot
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Light-FD.ttf
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Light-FD.woff
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Light-FD.woff2
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Medium-FD.eot
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Medium-FD.ttf
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Medium-FD.woff
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Medium-FD.woff2
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Thin-FD.eot
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Thin-FD.ttf
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Thin-FD.woff
Binary file not shown.
Binary file added assets/fonts/FD/Vazir-Thin-FD.woff2
Binary file not shown.
Binary file added assets/fonts/Vazir-Black.eot
Binary file not shown.
Binary file added assets/fonts/Vazir-Black.ttf
Binary file not shown.
Binary file added assets/fonts/Vazir-Black.woff
Binary file not shown.
Binary file added assets/fonts/Vazir-Black.woff2
Binary file not shown.
Binary file added assets/fonts/Vazir-Bold.eot
Binary file not shown.
Binary file added assets/fonts/Vazir-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Vazir-Bold.woff
Binary file not shown.
Binary file added assets/fonts/Vazir-Bold.woff2
Binary file not shown.
Binary file added assets/fonts/Vazir-Light.eot
Binary file not shown.
Binary file added assets/fonts/Vazir-Light.ttf
Binary file not shown.
Binary file added assets/fonts/Vazir-Light.woff
Binary file not shown.
Binary file added assets/fonts/Vazir-Light.woff2
Binary file not shown.
Binary file added assets/fonts/Vazir-Medium.eot
Binary file not shown.
Binary file added assets/fonts/Vazir-Medium.ttf
Binary file not shown.
Binary file added assets/fonts/Vazir-Medium.woff
Binary file not shown.
Binary file added assets/fonts/Vazir-Medium.woff2
Binary file not shown.
Binary file added assets/fonts/Vazir-Thin.eot
Binary file not shown.
Binary file added assets/fonts/Vazir-Thin.ttf
Binary file not shown.
Binary file added assets/fonts/Vazir-Thin.woff
Binary file not shown.
Binary file added assets/fonts/Vazir-Thin.woff2
Binary file not shown.
Binary file added assets/fonts/Vazir.eot
Binary file not shown.
Binary file added assets/fonts/Vazir.ttf
Binary file not shown.
Binary file added assets/fonts/Vazir.woff
Binary file not shown.
Binary file added assets/fonts/Vazir.woff2
Binary file not shown.
55 changes: 55 additions & 0 deletions assets/fonts/fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@font-face {
font-family: Vazir;
src: url("./FD/Vazir-FD.eot");
src: url("./FD/Vazir-FD.eot?#iefix") format("embedded-opentype"), url("./FD/Vazir-FD.woff2") format("woff2"), url("./FD/Vazir-FD.woff") format("woff"), url("./FD/Vazir-FD.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: Vazir;
src: url("./FD/Vazir-Bold-FD.eot");
src: url("./FD/Vazir-Bold-FD.eot?#iefix") format("embedded-opentype"), url("./FD/Vazir-Bold-FD.woff2") format("woff2"), url("./FD/Vazir-Bold-FD.woff") format("woff"), url("./FD/Vazir-Bold-FD.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: Vazir;
src: url("./FD/Vazir-Black-FD.eot");
src: url("./FD/Vazir-Black-FD.eot?#iefix") format("embedded-opentype"), url("./FD/Vazir-Black-FD.woff2") format("woff2"), url("./FD/Vazir-Black-FD.woff") format("woff"), url("./FD/Vazir-Black-FD.ttf") format("truetype");
font-weight: 900;
font-style: normal;
}

@font-face {
font-family: Vazir;
src: url("./FD/Vazir-Medium-FD.eot");
src: url("./FD/Vazir-Medium-FD.eot?#iefix") format("embedded-opentype"), url("./FD/Vazir-Medium-FD.woff2") format("woff2"), url("./FD/Vazir-Medium-FD.woff") format("woff"), url("./FD/Vazir-Medium-FD.ttf") format("truetype");
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: Vazir;
src: url("./FD/Vazir-Light-FD.eot");
src: url("./FD/Vazir-Light-FD.eot?#iefix") format("embedded-opentype"), url("./FD/Vazir-Light-FD.woff2") format("woff2"), url("./FD/Vazir-Light-FD.woff") format("woff"), url("./FD/Vazir-Light-FD.ttf") format("truetype");
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: Vazir;
src: url("./FD/Vazir-Thin-FD.eot");
src: url("./FD/Vazir-Thin-FD.eot?#iefix") format("embedded-opentype"), url("./FD/Vazir-Thin-FD.woff2") format("woff2"), url("./FD/Vazir-Thin-FD.woff") format("woff"), url("./FD/Vazir-Thin-FD.ttf") format("truetype");
font-weight: 100;
font-style: normal;
}

@font-face {
font-family: Chopsic;
src: url('./Chopsic.eot');
src: url('./Chopsic.eot?#iefix') format('embedded-opentype'), url('./Chopsic.woff2') format('woff2'), url('./Chopsic.woff') format('woff'), url('./Chopsic.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
Loading

0 comments on commit b11a1b4

Please sign in to comment.