├── .babelrc ├── .editorconfig ├── .env.example ├── .github └── workflows │ └── nodejs.yml ├── .gitignore ├── .gitmodules ├── .prettierrc.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── assets └── styles │ ├── _components.scss │ ├── _mixins.scss │ ├── _placeholders.scss │ ├── _variables.scss │ └── utils.scss ├── components ├── Card.vue ├── DashboardCard.vue ├── DevcoinIcon.vue ├── Devcoins.vue ├── DevwarsCard.vue ├── FileChooser.vue ├── HomeCard.vue ├── LinkTabs.vue ├── Logo.vue ├── Pagination.vue ├── Popup.vue ├── SquareToggle.vue ├── Tabbed.vue ├── TabbedItem.vue ├── Table.vue ├── Tag.vue ├── common │ ├── Button.vue │ ├── ButtonGroup.vue │ ├── ButtonIcon.vue │ ├── Icon.vue │ └── button.module.js ├── dashboard │ ├── Activities.vue │ ├── BadgeCard.vue │ ├── Badges.vue │ ├── DailyPrizes.vue │ ├── GamesPlayed.vue │ ├── Moderation.vue │ ├── ProfileCard.vue │ ├── UpcomingGames.vue │ └── Wallet.vue ├── form │ ├── Checkbox.vue │ ├── Input.vue │ ├── Progress.vue │ ├── Select.vue │ └── Textarea.vue ├── game │ ├── Applications.vue │ ├── GameEditor.vue │ ├── GameProjectTeam.vue │ ├── GameTeam.vue │ ├── Highlights.vue │ ├── LanguageSkills.vue │ ├── LargeGameDetail.vue │ ├── NextShowing.vue │ ├── NowShowing.vue │ ├── ObjectivesList.vue │ ├── Player.vue │ ├── Recap.vue │ ├── RegistrationButtons.vue │ ├── ScheduleBlock.vue │ ├── SubScore.vue │ ├── VoteBox.vue │ └── WebViewer.vue ├── grid │ ├── Column.vue │ ├── Container.vue │ └── Row.vue ├── layout │ ├── Footer.vue │ ├── Header.vue │ ├── HeaderMobile.vue │ └── PageBanner.vue ├── mod │ ├── ListingFilters.vue │ ├── ModSidebar.vue │ ├── ObjectivesEdit.vue │ ├── PanelHeader.vue │ ├── game │ │ ├── GameBrief.vue │ │ ├── GameDetails.vue │ │ └── GameEdit.vue │ └── schedule │ │ └── ScheduleSetup.vue ├── modal │ ├── AddPlayerModal.vue │ ├── AddRegistrantModal.vue │ ├── ConfirmModal.vue │ ├── CreateGameModal.vue │ ├── CropperModal.vue │ ├── DeleteModal.vue │ ├── EndGameModal.vue │ ├── GameRegistration.vue │ ├── GameResignModal.vue │ └── ViewObjectivesModal.vue ├── toast │ ├── Toast.vue │ └── Toasts.vue └── user │ ├── Avatar.vue │ ├── ConnectToDiscord.vue │ ├── ConnectToTwitch.vue │ ├── ConnectionsSmall.vue │ └── User.vue ├── layouts ├── default.vue ├── error.vue └── header.vue ├── middleware ├── auth.js ├── no-competitors.js └── update-latest-route.js ├── nuxt.config.js ├── package-lock.json ├── package.json ├── pages ├── badges.vue ├── competitor │ ├── register.vue │ └── registered.vue ├── contact.vue ├── dashboard │ └── _dashboard.vue ├── docs.vue ├── forgot-password.vue ├── game │ └── confirmation.vue ├── games │ ├── _id.vue │ └── index.vue ├── index.vue ├── leaderboards.vue ├── login.vue ├── mod.vue ├── mod │ ├── dashboard.vue │ ├── game.vue │ ├── games.vue │ ├── index.vue │ ├── logs.vue │ ├── tournament.vue │ ├── tournament │ │ └── details.vue │ ├── tournaments.vue │ └── users.vue ├── pending.vue ├── register.vue ├── reset-password.vue ├── schedule.vue ├── settings.vue ├── settings │ ├── account.vue │ ├── connections.vue │ ├── notifications.vue │ └── profile.vue └── shop.vue ├── plugins ├── axios.js ├── directives.js ├── filters.js ├── ga.js ├── global.js ├── highlight.js ├── mixins.js ├── modal.js └── send-back.js ├── static ├── favicon.ico ├── img │ ├── badges │ │ ├── ace-high.png │ │ ├── authentic.png │ │ ├── beginner's-luck.png │ │ ├── biggest-fan.png │ │ ├── cake-day.png │ │ ├── exterminator.png │ │ ├── feed-the-pig.png │ │ ├── first-timer.png │ │ ├── follow-me.png │ │ ├── full-coverage.png │ │ ├── high-roller.png │ │ ├── hobbyist.png │ │ ├── hotshot.png │ │ ├── influential.png │ │ ├── innovator.png │ │ ├── making-links.png │ │ ├── mystery.png │ │ ├── natural-leader.png │ │ ├── obsessed.png │ │ ├── on-the-ball.png │ │ ├── penny-pincher.png │ │ ├── smarty-pants.png │ │ ├── steamroller.png │ │ └── victorious.png │ ├── become-contestant-bg.jpg │ ├── browsers │ │ ├── chrome_48x48.png │ │ ├── edge_48x48.png │ │ ├── firefox_48x48.png │ │ └── safari_48x48.png │ ├── companies │ │ ├── devtips-square.png │ │ ├── discord-color.png │ │ ├── discord-white.png │ │ ├── hiringsolved-color.png │ │ ├── hiringsolved-white.png │ │ ├── microsoft-color.png │ │ ├── microsoft-white.png │ │ ├── scotchio-square.jpg │ │ ├── twitch-color.png │ │ └── twitch-white.png │ ├── default-avatar.png │ ├── devwars-docs-bg.jpg │ ├── docs │ │ └── en-lang.png │ ├── error-sad.png │ ├── hero-bg.jpg │ ├── starburst.png │ ├── team-blue.png │ └── team-red.png └── og │ └── logo.png ├── store ├── badges.js ├── game.js ├── index.js ├── modal.js ├── server.js ├── toast.js └── user.js └── utils ├── auth.js ├── gameDurations.js ├── gameStatus.js ├── linkedAccounts.js ├── mixins.js └── objectives.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "test": { 4 | "presets": [ 5 | [ 6 | "@babel/preset-env", 7 | { 8 | "targets": { 9 | "node": "current" 10 | } 11 | } 12 | ] 13 | ] 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 4 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false 14 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | DISCORD_CLIENT= 2 | TWITCH_CLIENT= 3 | 4 | API_URL=http://localhost:8080 5 | BASE_URL=http://localhost:3000 -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- 1 | name: Node.js CI 2 | 3 | on: 4 | push: 5 | branches: [master] 6 | pull_request: 7 | branches: [master] 8 | 9 | jobs: 10 | build: 11 | runs-on: ubuntu-latest 12 | 13 | strategy: 14 | matrix: 15 | node-version: [12.x] 16 | 17 | steps: 18 | - uses: actions/checkout@v2 19 | - name: Use Node.js ${{ matrix.node-version }} 20 | uses: actions/setup-node@v1 21 | with: 22 | node-version: ${{ matrix.node-version }} 23 | - run: npm ci 24 | - run: git submodule update --init --recursive 25 | - run: npm run lint --if-present 26 | - run: npm run build --if-present 27 | # - run: npm test 28 | env: 29 | CI: true 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | 3 | # dependencies 4 | node_modules 5 | 6 | # logs 7 | npm-debug.log 8 | 9 | # Nuxt build 10 | .nuxt 11 | 12 | .idea/ 13 | 14 | # Nuxt generate 15 | dist 16 | 17 | # temp 18 | yarn.lock 19 | 20 | .env 21 | .vscode 22 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "client"] 2 | path = client 3 | url = https://github.com/DevWars/DevWars-API-Client 4 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all", 4 | "arrowParens": "always", 5 | "semi": true 6 | } 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 DevWars, LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 |
3 | DEV 4 |

DevWars TV

5 | The Human Layer of the Stack 6 |
7 |
8 | 9 | Welcome to the [DevWars](https://DevWars.tv) TV codebase. This is the core UI and interface for the the DevWars platform. 10 | 11 | ## What is DevWars? 12 | 13 | [DevWars.tv](https://www.devwars.tv/) is a live game show for developers that is currently streamed on [Twitch](https://www.twitch.tv/devwars). People of all levels participate in an exhilarating battle to create the best website they can within 60 minutes. Teams are formed of 3 people, with the team's members each controlling a single language - HTML, CSS and JavaScript. 14 | 15 | ## Getting Started 16 | 17 | ### Prerequisites 18 | 19 | - [Nodejs](https://nodejs.org/en/): 10.0 or higher 20 | - [DevWars API](https://github.com/devwars/devwars-api/): Lastest version. 21 | 22 | ### Dependency Installation 23 | 24 | Run `npm install` to install dependent node_modules. 25 | 26 | ### Environment Variables 27 | 28 | Make a copy of the `.env.example` file in the same directory and rename the given file to `.env`. This will be loaded up into the application when it first starts running. These are required configuration settings to ensure correct function. Process through the newly created file and make the required changes if needed. 29 | 30 | ### Development 31 | 32 | Running `npm run dev` will start a development server that will automatically restart when changes occur. Additionally running `npm run build` or `npm run start` will allow running a production ready version of the platform. 33 | 34 | ## Contributors 35 | 36 | This project exists thanks to all the people who [contribute](https://github.com/DevWars/devwars.tv/graphs/contributors). We encourage you to contribute to DevWars but ensure to open a related issue first. Please check out the [contributing](CONTRIBUTING.md) to DevWars guide for guidelines about how to proceed. 37 | 38 | ## License 39 | 40 | > You can check out the full license [here](https://github.com/DevWars/devwars.tv/blob/master/LICENSE) 41 | 42 | This project is licensed under the terms of the **MIT** license. 43 | -------------------------------------------------------------------------------- /assets/styles/_components.scss: -------------------------------------------------------------------------------- 1 | $input-padding-y: 6px; 2 | $input-label-offset: $input-padding-y * 2; 3 | 4 | %form-control { 5 | display: block; 6 | width: 100%; 7 | padding: $input-padding-y 0; 8 | font-size: $font-size-base; 9 | line-height: 1.25; 10 | color: $base-font-color; 11 | background-color: transparent; 12 | background-image: none; 13 | background-clip: padding-box; 14 | border: none; 15 | border-bottom: 1px solid $text-color-muted; 16 | 17 | &:focus { 18 | border-color: $brand-secondary; 19 | outline: none; 20 | } 21 | 22 | &::placeholder { 23 | color: $text-color-muted; 24 | } 25 | 26 | &:disabled { 27 | color: #484b5b; 28 | } 29 | 30 | // Change Autocomplete styles in Chrome 31 | &:-webkit-autofill, 32 | &:-webkit-autofill:hover, 33 | &:-webkit-autofill:focus { 34 | -webkit-text-fill-color: #fff; 35 | box-shadow: 0 0 0px 1000px transparent inset; 36 | transition: background-color 5000s ease-in-out 0s; 37 | } 38 | } 39 | 40 | %form-group { 41 | margin-bottom: 30px; 42 | } 43 | 44 | %form-label { 45 | margin-top: $input-label-offset; 46 | position: relative; 47 | 48 | label { 49 | line-height: 1; 50 | color: $text-color-muted; 51 | font-size: $font-size-base; 52 | position: absolute; 53 | pointer-events: none; 54 | left: 0; 55 | top: $input-padding-y; 56 | transition: 0.2s ease all; 57 | } 58 | 59 | input, 60 | select, 61 | textarea { 62 | &:required ~ label:after { 63 | content: ' *'; 64 | color: $danger-color; 65 | opacity: 0.4; 66 | } 67 | 68 | &:invalid { 69 | color: $danger-color; 70 | } 71 | 72 | &.empty:placeholder-shown ~ label, 73 | &:focus ~ label, 74 | &.valid ~ label, 75 | &.empty:focus ~ label { 76 | top: -($input-label-offset / 0.9); 77 | font-size: $font-size-sm; 78 | } 79 | 80 | &.empty ~ label { 81 | font-size: $font-size-base; 82 | top: $input-padding-y; 83 | } 84 | 85 | &:focus ~ label { 86 | color: $brand-secondary; 87 | } 88 | 89 | &:required:focus ~ label:after { 90 | opacity: 1; 91 | } 92 | } 93 | } 94 | 95 | // Aligns element to baseline of any form element with labels 96 | %align-baseline-to-input-with-labels { 97 | margin-top: $input-label-offset + $input-padding-y / 2; 98 | } 99 | 100 | // Temporary 101 | .v--modal { 102 | &-box { 103 | height: auto !important; 104 | padding: $grid-gutter-width !important; 105 | background-color: $bg-color-3 !important; 106 | animation-duration: 250ms !important; 107 | } 108 | 109 | &-overlay { 110 | background-color: rgba(#000, 0.8) !important; 111 | } 112 | 113 | h1 { 114 | margin-bottom: $grid-gutter-width; 115 | } 116 | } 117 | 118 | .modal { 119 | &__actions { 120 | margin-top: $m-space; 121 | text-align: right; 122 | 123 | .Button:not(:last-child) { 124 | margin-right: $grid-gutter-width; 125 | } 126 | } 127 | } 128 | -------------------------------------------------------------------------------- /assets/styles/_mixins.scss: -------------------------------------------------------------------------------- 1 | @mixin size($width, $height: $width) { 2 | height: $height; 3 | width: $width; 4 | } 5 | 6 | @mixin aspect-ratio($width, $height) { 7 | position: relative; 8 | &:before { 9 | display: block; 10 | content: ''; 11 | width: 100%; 12 | padding-top: ($height / $width) * 100%; 13 | } 14 | > .aspect { 15 | position: absolute; 16 | width: 100%; 17 | height: 100%; 18 | top: 0; 19 | left: 0; 20 | right: 0; 21 | bottom: 0; 22 | border: 0; 23 | } 24 | } 25 | 26 | @mixin clear-position { 27 | position: relative; 28 | top: auto; 29 | right: auto; 30 | left: auto; 31 | bottom: auto; 32 | transform: none; 33 | } 34 | 35 | @mixin clear-aspect-ratio { 36 | &:before { 37 | display: none; 38 | } 39 | } 40 | 41 | @mixin material($depth: 1) { 42 | @if $depth == 1 { 43 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); 44 | } @else if $depth == 2 { 45 | box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); 46 | } @else if $depth == 3 { 47 | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19); 48 | } @else if $depth == 4 { 49 | box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); 50 | } @else if $depth == 5 { 51 | box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3); 52 | } 53 | } 54 | 55 | @mixin linear-gradient($direction, $color-stops...) { 56 | background: nth(nth($color-stops, 1), 1); 57 | background: linear-gradient($direction, $color-stops); 58 | } 59 | 60 | @mixin spacing($prop, $property, $dir, $direction) { 61 | .#{$prop}#{$dir} { 62 | &-0 { 63 | #{$property}-#{$direction}: 0 !important; 64 | } 65 | &-xs { 66 | #{$property}-#{$direction}: $xs-space !important; 67 | } 68 | &-15 { 69 | #{$property}-#{$direction}: $grid-gutter-width !important; 70 | } 71 | &-sm { 72 | #{$property}-#{$direction}: $s-space !important; 73 | } 74 | &-30 { 75 | #{$property}-#{$direction}: 30px !important; 76 | } 77 | &-md { 78 | #{$property}-#{$direction}: $m-space !important; 79 | } 80 | &-60 { 81 | #{$property}-#{$direction}: 60px !important; 82 | } 83 | &-lg { 84 | #{$property}-#{$direction}: $l-space !important; 85 | } 86 | &-xl { 87 | #{$property}-#{$direction}: $xl-space !important; 88 | } 89 | } 90 | } 91 | 92 | /* ========================================================================== 93 | XX. Unaccessible Scoped Functions 94 | ========================================================================== */ 95 | @mixin breakpoint($breakpoint, $range: max) { 96 | @media (#{$range}-width: map-get($grid-breakpoints, $breakpoint)) { 97 | @content; 98 | } 99 | } 100 | 101 | @mixin col-breakpoint($point) { 102 | @if $point == lg { 103 | @media (min-width: map-get($grid-breakpoints, md)) { 104 | @content; 105 | } 106 | } 107 | @if $point == md { 108 | @media (min-width: map-get($grid-breakpoints, sm)) { 109 | @content; 110 | } 111 | } 112 | @if $point == sm { 113 | @media (min-width: map-get($grid-breakpoints, xs)) { 114 | @content; 115 | } 116 | } 117 | @if $point == xs { 118 | @media (min-width: 0px) { 119 | @content; 120 | } 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /assets/styles/_placeholders.scss: -------------------------------------------------------------------------------- 1 | %truncate { 2 | overflow: hidden; 3 | text-overflow: ellipsis; 4 | white-space: nowrap; 5 | } 6 | 7 | %clear { 8 | &:after { 9 | content: ''; 10 | display: table; 11 | clear: both; 12 | } 13 | } 14 | 15 | %clear-inline { 16 | font-size: 0; 17 | > * { 18 | font-size: $font-size-base; 19 | } 20 | } 21 | 22 | %material { 23 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26); 24 | } 25 | 26 | %material-soft { 27 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); 28 | } 29 | 30 | %material-hover { 31 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26); 32 | transform: translateY(0%); 33 | transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 34 | 35 | &:hover { 36 | box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); 37 | transform: translateY(-4px); 38 | } 39 | } 40 | 41 | %flex-justify { 42 | display: flex; 43 | justify-content: space-between; 44 | align-items: center; 45 | 46 | &:after { 47 | content: normal; 48 | } 49 | } 50 | 51 | %absolute-overlay { 52 | position: absolute; 53 | top: 0; 54 | right: 0; 55 | bottom: 0; 56 | left: 0; 57 | width: 100%; 58 | height: 100%; 59 | } 60 | 61 | %fixed-overlay { 62 | position: fixed; 63 | top: 0; 64 | right: 0; 65 | bottom: 0; 66 | left: 0; 67 | } 68 | 69 | %absolute-center { 70 | position: absolute; 71 | top: 50%; 72 | left: 50%; 73 | transform: translate(-50%, -50%); 74 | } 75 | 76 | %absolute-center-x { 77 | position: absolute; 78 | left: 50%; 79 | transform: translateX(-50%); 80 | } 81 | 82 | %absolute-center-y { 83 | position: absolute; 84 | top: 50%; 85 | transform: translateY(-50%); 86 | } 87 | 88 | %align-middle { 89 | display: inline-block; 90 | vertical-align: middle; 91 | } 92 | 93 | %fill-gutter { 94 | width: calc(100% - $grid-gutter-width); 95 | margin-left: $grid-gutter-width; 96 | margin-right: $grid-gutter-width; 97 | } 98 | 99 | %readable-width { 100 | max-width: 700px; 101 | margin-left: auto; 102 | margin-right: auto; 103 | } 104 | 105 | %brand-skew { 106 | transform: skew(-12deg); 107 | } 108 | 109 | %list-unstyled { 110 | padding-left: 0; 111 | list-style: none; 112 | } 113 | 114 | %no-gutter { 115 | padding-left: 0; 116 | padding-right: 0; 117 | } 118 | -------------------------------------------------------------------------------- /assets/styles/utils.scss: -------------------------------------------------------------------------------- 1 | @import './variables'; 2 | @import './mixins'; 3 | @import './placeholders'; 4 | @import './components'; 5 | -------------------------------------------------------------------------------- /components/Card.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 20 | 21 | 66 | -------------------------------------------------------------------------------- /components/DashboardCard.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 32 | 33 | 59 | -------------------------------------------------------------------------------- /components/DevcoinIcon.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 32 | 33 | 40 | -------------------------------------------------------------------------------- /components/Devcoins.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 22 | 23 | 67 | -------------------------------------------------------------------------------- /components/DevwarsCard.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 31 | 32 | 73 | -------------------------------------------------------------------------------- /components/FileChooser.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 36 | -------------------------------------------------------------------------------- /components/HomeCard.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 27 | 28 | 79 | -------------------------------------------------------------------------------- /components/LinkTabs.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 82 | 83 | 145 | -------------------------------------------------------------------------------- /components/Logo.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 30 | 31 | 58 | -------------------------------------------------------------------------------- /components/Pagination.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 47 | 48 | 62 | -------------------------------------------------------------------------------- /components/Popup.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 32 | 33 | 89 | -------------------------------------------------------------------------------- /components/SquareToggle.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 29 | 30 | 58 | -------------------------------------------------------------------------------- /components/Tabbed.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 59 | 60 | 111 | -------------------------------------------------------------------------------- /components/TabbedItem.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 34 | -------------------------------------------------------------------------------- /components/Table.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 19 | 20 | 80 | -------------------------------------------------------------------------------- /components/Tag.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 64 | -------------------------------------------------------------------------------- /components/common/ButtonGroup.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 24 | -------------------------------------------------------------------------------- /components/common/ButtonIcon.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 29 | 30 | 60 | -------------------------------------------------------------------------------- /components/common/Icon.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 21 | 22 | 35 | -------------------------------------------------------------------------------- /components/common/button.module.js: -------------------------------------------------------------------------------- 1 | function parseTag(attrs) { 2 | const aTag = attrs.tag && String(attrs.tag).toLowerCase() === 'a'; 3 | 4 | if (Object.prototype.hasOwnProperty.call(attrs, 'href') || aTag) { 5 | return 'a'; 6 | } 7 | 8 | if (Object.prototype.hasOwnProperty.call(attrs, 'to')) { 9 | return 'nuxt-link'; 10 | } 11 | 12 | return 'button'; 13 | } 14 | 15 | export default { 16 | name: 'Button', 17 | 18 | render(h) { 19 | const tag = parseTag(this.$attrs); 20 | 21 | if (tag === 'a') { 22 | return h( 23 | tag, 24 | { 25 | attrs: { 26 | href: this.$attrs.href, 27 | }, 28 | }, 29 | this.$slots.default, 30 | ); 31 | } 32 | 33 | if (tag === 'nuxt-link') { 34 | return ( 35 | {this.$slots.default} 36 | ); 37 | } 38 | 39 | return h( 40 | tag, 41 | { 42 | attrs: { 43 | type: 'button', 44 | }, 45 | }, 46 | this.$slots.default, 47 | ); 48 | }, 49 | }; 50 | -------------------------------------------------------------------------------- /components/dashboard/Activities.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 53 | 54 | 105 | -------------------------------------------------------------------------------- /components/dashboard/BadgeCard.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 43 | 44 | 85 | -------------------------------------------------------------------------------- /components/dashboard/Badges.vue: -------------------------------------------------------------------------------- 1 | 19 | 20 | 43 | 44 | 75 | -------------------------------------------------------------------------------- /components/dashboard/DailyPrizes.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 38 | 39 | 56 | -------------------------------------------------------------------------------- /components/dashboard/GamesPlayed.vue: -------------------------------------------------------------------------------- 1 | 37 | 38 | 62 | 63 | 119 | -------------------------------------------------------------------------------- /components/dashboard/ProfileCard.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 45 | 46 | 73 | -------------------------------------------------------------------------------- /components/dashboard/UpcomingGames.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 55 | 56 | 83 | -------------------------------------------------------------------------------- /components/dashboard/Wallet.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 43 | 44 | 97 | -------------------------------------------------------------------------------- /components/form/Checkbox.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 31 | 32 | 128 | -------------------------------------------------------------------------------- /components/form/Input.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 68 | 69 | 88 | -------------------------------------------------------------------------------- /components/form/Progress.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 36 | 37 | 74 | -------------------------------------------------------------------------------- /components/form/Select.vue: -------------------------------------------------------------------------------- 1 | 23 | 24 | 56 | 57 | 115 | -------------------------------------------------------------------------------- /components/form/Textarea.vue: -------------------------------------------------------------------------------- 1 |