-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f637e1d
commit b11a1b4
Showing
178 changed files
with
26,610 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.