├── static
└── .gitkeep
├── config
├── prod.env.js
├── test.env.js
├── dev.env.js
└── index.js
├── src
├── assets
│ ├── ping_sound.mp3
│ ├── images
│ │ ├── cards
│ │ │ ├── default.png
│ │ │ ├── mythos
│ │ │ │ ├── default.png
│ │ │ │ ├── chinese
│ │ │ │ │ ├── diyu.jpg
│ │ │ │ │ ├── mazu.jpg
│ │ │ │ │ ├── nuwa.jpg
│ │ │ │ │ ├── shinje.jpg
│ │ │ │ │ ├── yaomo.jpg
│ │ │ │ │ ├── guan-yu.jpg
│ │ │ │ │ ├── guanyin.jpg
│ │ │ │ │ ├── life-tool.jpg
│ │ │ │ │ ├── monking.jpg
│ │ │ │ │ ├── yaoguai.jpg
│ │ │ │ │ ├── yaojing.jpg
│ │ │ │ │ ├── jade-emperor.jpg
│ │ │ │ │ ├── manchu-archer.jpg
│ │ │ │ │ ├── destruction-tool.jpg
│ │ │ │ │ ├── eight-immortals.jpg
│ │ │ │ │ ├── kung-fu-fighter.jpg
│ │ │ │ │ └── terracotta-soldier.jpg
│ │ │ │ ├── common
│ │ │ │ │ ├── bear.jpg
│ │ │ │ │ ├── totem.jpg
│ │ │ │ │ ├── archer.jpg
│ │ │ │ │ ├── healer.jpg
│ │ │ │ │ ├── pikeman.jpg
│ │ │ │ │ ├── shaman.jpg
│ │ │ │ │ ├── slinger.jpg
│ │ │ │ │ ├── spider.jpg
│ │ │ │ │ ├── undead.jpg
│ │ │ │ │ ├── assassin.jpg
│ │ │ │ │ ├── defender.jpg
│ │ │ │ │ ├── holy-man.jpg
│ │ │ │ │ ├── lost-soul.jpg
│ │ │ │ │ ├── ninja-spy.jpg
│ │ │ │ │ ├── skeleton.jpg
│ │ │ │ │ ├── swordsman.jpg
│ │ │ │ │ └── snake-python.jpg
│ │ │ │ ├── greek
│ │ │ │ │ ├── ajax.jpg
│ │ │ │ │ ├── apollo.jpg
│ │ │ │ │ ├── ares.jpg
│ │ │ │ │ ├── athena.jpg
│ │ │ │ │ ├── bident.jpg
│ │ │ │ │ ├── charon.jpg
│ │ │ │ │ ├── chiron.jpg
│ │ │ │ │ ├── cronus.jpg
│ │ │ │ │ ├── empusa.jpg
│ │ │ │ │ ├── eros.jpg
│ │ │ │ │ ├── gaia.jpg
│ │ │ │ │ ├── hades.jpg
│ │ │ │ │ ├── hecate.jpg
│ │ │ │ │ ├── hector.jpg
│ │ │ │ │ ├── hera.jpg
│ │ │ │ │ ├── hermes.jpg
│ │ │ │ │ ├── iolaus.jpg
│ │ │ │ │ ├── lamia.jpg
│ │ │ │ │ ├── medusa.jpg
│ │ │ │ │ ├── moirai.jpg
│ │ │ │ │ ├── rhea.jpg
│ │ │ │ │ ├── scythe.jpg
│ │ │ │ │ ├── uranus.jpg
│ │ │ │ │ ├── zeus.jpg
│ │ │ │ │ ├── achilles.jpg
│ │ │ │ │ ├── arachne.jpg
│ │ │ │ │ ├── artemis.jpg
│ │ │ │ │ ├── cerberus.jpg
│ │ │ │ │ ├── daedalus.jpg
│ │ │ │ │ ├── griffin.jpg
│ │ │ │ │ ├── heracles.jpg
│ │ │ │ │ ├── minotaur.jpg
│ │ │ │ │ ├── odysseus.jpg
│ │ │ │ │ ├── perseus.jpg
│ │ │ │ │ ├── poseidon.jpg
│ │ │ │ │ ├── thanatos.jpg
│ │ │ │ │ ├── theseus.jpg
│ │ │ │ │ ├── trident.jpg
│ │ │ │ │ ├── mnemosyne.jpg
│ │ │ │ │ ├── nemean-lion.jpg
│ │ │ │ │ ├── persephone.jpg
│ │ │ │ │ ├── underworld.jpg
│ │ │ │ │ ├── golden-fleece.jpg
│ │ │ │ │ ├── mount-olympus.jpg
│ │ │ │ │ ├── achilles-shield.jpg
│ │ │ │ │ ├── erymanthian-boar.jpg
│ │ │ │ │ ├── helm-of-darkness.jpg
│ │ │ │ │ ├── lernaean-hydra.jpg
│ │ │ │ │ └── judges-of-the-dead.jpg
│ │ │ │ └── hindu
│ │ │ │ │ ├── brahma.jpg
│ │ │ │ │ ├── durga.jpg
│ │ │ │ │ ├── hansa.jpg
│ │ │ │ │ ├── indra.jpg
│ │ │ │ │ ├── shiva.jpg
│ │ │ │ │ ├── varuna.jpg
│ │ │ │ │ ├── vishnu.jpg
│ │ │ │ │ ├── yama.jpg
│ │ │ │ │ ├── airavata.jpg
│ │ │ │ │ ├── default.png
│ │ │ │ │ ├── krishna.jpg
│ │ │ │ │ ├── gautama-buddha.jpg
│ │ │ │ │ └── maitreya-buddha.jpg
│ │ │ └── cyborg-chronicles
│ │ │ │ └── default.png
│ │ └── favicon
│ │ │ ├── favicon.ico
│ │ │ ├── apple-icon.png
│ │ │ ├── favicon-16x16.png
│ │ │ ├── favicon-32x32.png
│ │ │ ├── favicon-96x96.png
│ │ │ ├── ms-icon-70x70.png
│ │ │ ├── apple-icon-57x57.png
│ │ │ ├── apple-icon-60x60.png
│ │ │ ├── apple-icon-72x72.png
│ │ │ ├── apple-icon-76x76.png
│ │ │ ├── ms-icon-144x144.png
│ │ │ ├── ms-icon-150x150.png
│ │ │ ├── ms-icon-310x310.png
│ │ │ ├── android-icon-36x36.png
│ │ │ ├── android-icon-48x48.png
│ │ │ ├── android-icon-72x72.png
│ │ │ ├── android-icon-96x96.png
│ │ │ ├── apple-icon-114x114.png
│ │ │ ├── apple-icon-120x120.png
│ │ │ ├── apple-icon-144x144.png
│ │ │ ├── apple-icon-152x152.png
│ │ │ ├── apple-icon-180x180.png
│ │ │ ├── android-icon-144x144.png
│ │ │ ├── android-icon-192x192.png
│ │ │ ├── apple-icon-precomposed.png
│ │ │ ├── browserconfig.xml
│ │ │ └── manifest.json
│ └── style.css
├── main.js
├── components
│ ├── TopNavbar.vue
│ ├── CardList.vue
│ ├── Value.vue
│ ├── PlayerInfo.vue
│ ├── CardModel.vue
│ ├── Login.vue
│ ├── Lobby.vue
│ ├── GameBoard.vue
│ └── DeckBuilder.vue
├── App.vue
├── router
│ └── index.js
└── server_interface.js
├── test
└── unit
│ ├── .eslintrc
│ ├── specs
│ └── HelloWorld.spec.js
│ ├── index.js
│ └── karma.conf.js
├── .editorconfig
├── .postcssrc.js
├── .gitignore
├── .babelrc
├── README.md
├── Jenkinsfile
├── index.html
├── package.json
└── LICENSE
/static/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/src/assets/ping_sound.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/ping_sound.mp3
--------------------------------------------------------------------------------
/src/assets/images/cards/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/default.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/favicon.ico
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/default.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/favicon-16x16.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/favicon-32x32.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/favicon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/favicon-96x96.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/ms-icon-70x70.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/ms-icon-70x70.png
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/diyu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/diyu.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/mazu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/mazu.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/nuwa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/nuwa.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/bear.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/bear.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/totem.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/totem.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/ajax.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/ajax.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/apollo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/apollo.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/ares.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/ares.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/athena.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/athena.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/bident.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/bident.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/charon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/charon.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/chiron.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/chiron.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/cronus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/cronus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/empusa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/empusa.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/eros.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/eros.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/gaia.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/gaia.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/hades.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/hades.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/hecate.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/hecate.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/hector.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/hector.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/hera.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/hera.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/hermes.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/hermes.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/iolaus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/iolaus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/lamia.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/lamia.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/medusa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/medusa.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/moirai.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/moirai.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/rhea.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/rhea.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/scythe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/scythe.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/uranus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/uranus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/zeus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/zeus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/brahma.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/brahma.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/durga.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/durga.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/hansa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/hansa.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/indra.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/indra.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/shiva.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/shiva.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/varuna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/varuna.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/vishnu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/vishnu.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/yama.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/yama.jpg
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-57x57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-57x57.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-60x60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-60x60.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-72x72.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-76x76.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/ms-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/ms-icon-144x144.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/ms-icon-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/ms-icon-150x150.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/ms-icon-310x310.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/ms-icon-310x310.png
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/shinje.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/shinje.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/yaomo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/yaomo.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/archer.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/archer.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/healer.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/healer.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/pikeman.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/pikeman.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/shaman.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/shaman.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/slinger.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/slinger.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/spider.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/spider.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/undead.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/undead.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/achilles.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/achilles.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/arachne.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/arachne.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/artemis.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/artemis.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/cerberus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/cerberus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/daedalus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/daedalus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/griffin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/griffin.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/heracles.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/heracles.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/minotaur.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/minotaur.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/odysseus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/odysseus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/perseus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/perseus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/poseidon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/poseidon.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/thanatos.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/thanatos.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/theseus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/theseus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/trident.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/trident.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/airavata.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/airavata.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/default.png
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/krishna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/krishna.jpg
--------------------------------------------------------------------------------
/src/assets/images/favicon/android-icon-36x36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/android-icon-36x36.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/android-icon-48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/android-icon-48x48.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/android-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/android-icon-72x72.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/android-icon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/android-icon-96x96.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-114x114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-114x114.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-120x120.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-144x144.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-152x152.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-180x180.png
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/guan-yu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/guan-yu.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/guanyin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/guanyin.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/life-tool.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/life-tool.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/monking.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/monking.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/yaoguai.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/yaoguai.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/yaojing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/yaojing.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/assassin.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/assassin.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/defender.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/defender.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/holy-man.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/holy-man.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/lost-soul.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/lost-soul.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/ninja-spy.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/ninja-spy.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/skeleton.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/skeleton.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/swordsman.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/swordsman.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/mnemosyne.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/mnemosyne.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/nemean-lion.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/nemean-lion.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/persephone.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/persephone.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/underworld.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/underworld.jpg
--------------------------------------------------------------------------------
/src/assets/images/favicon/android-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/android-icon-144x144.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/android-icon-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/android-icon-192x192.png
--------------------------------------------------------------------------------
/src/assets/images/favicon/apple-icon-precomposed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/favicon/apple-icon-precomposed.png
--------------------------------------------------------------------------------
/test/unit/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "mocha": true
4 | },
5 | "globals": {
6 | "expect": true,
7 | "sinon": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/src/assets/images/cards/cyborg-chronicles/default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/cyborg-chronicles/default.png
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/common/snake-python.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/common/snake-python.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/golden-fleece.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/golden-fleece.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/mount-olympus.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/mount-olympus.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/jade-emperor.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/jade-emperor.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/manchu-archer.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/manchu-archer.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/achilles-shield.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/achilles-shield.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/erymanthian-boar.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/erymanthian-boar.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/helm-of-darkness.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/helm-of-darkness.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/lernaean-hydra.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/lernaean-hydra.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/gautama-buddha.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/gautama-buddha.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/hindu/maitreya-buddha.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/hindu/maitreya-buddha.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/destruction-tool.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/destruction-tool.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/eight-immortals.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/eight-immortals.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/kung-fu-fighter.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/kung-fu-fighter.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/greek/judges-of-the-dead.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/greek/judges-of-the-dead.jpg
--------------------------------------------------------------------------------
/src/assets/images/cards/mythos/chinese/terracotta-soldier.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Cardshifter/HTML-Client/HEAD/src/assets/images/cards/mythos/chinese/terracotta-soldier.jpg
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const devEnv = require('./dev.env')
4 |
5 | module.exports = merge(devEnv, {
6 | NODE_ENV: '"testing"'
7 | })
8 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-import": {},
6 | "postcss-url": {},
7 | // to edit target browsers: use "browserslist" field in package.json
8 | "autoprefixer": {}
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/assets/images/favicon/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
| 13 | {{ propertyName }} 14 | | 15 |
|---|
| 18 | {{card.properties[propertyName] || '-'}} 19 | | 20 |
68 | * A login message from a client to add a user to the available users on the server.
69 | * This login message is required before any other action or message can be performed between a client and a server.
70 | * @constructor
71 | * @param username the incoming user name passed from client to server, not null
72 | * @example Message: { "command":"login","username":"JohnDoe" }
73 | */
74 | LoginMessage: function(username) {
75 | this.username = username;
76 | console.log(this);
77 | },
78 |
79 | /**
80 | * Request available targets for a specific action to be performed by an entity.
81 | *
82 | * These in-game messages request a list of al available targets for a given action and entity. 83 | * The client uses this request in order to point out targets (hopefully with a visual aid such as highlighting targets) 84 | * that an entity (such as a creature card, or a player) can perform an action on (for example attack or enchant a card. 85 | * @constructor 86 | * @param gameId The Id of this game currently being played 87 | * @param id The Id of this entity which requests to perform an action 88 | * @param action The name of this action requested to be performed 89 | */ 90 | RequestTargetsMessage: function(gameId, id, action) { 91 | this.gameId = gameId; 92 | this.id = id; 93 | this.action = action; 94 | }, 95 | 96 | /** 97 | * Make a specific type of request to the server. 98 | *
99 | * This is used to request an action from the server which requires server-side information. 100 | * @constructor 101 | * @param request This request 102 | * @param message The message accompanying this request 103 | */ 104 | ServerQueryMessage: function(request, message) { 105 | this.request = request; 106 | this.message = message; 107 | 108 | this.toString = function() { 109 | return "ServerQueryMessage: Request" + this.request + " message: " + this.message; 110 | }; 111 | }, 112 | 113 | 114 | /** 115 | * Request to start a new game. 116 | *
117 | * This is sent from the Client to the Server when this player invites another player (including AI) to start a new game of a chosen type. 118 | * @constructor 119 | * @param opponent The Id of the player entity being invited by this player 120 | * @param gameType The type / mod of the game chosen by this player 121 | */ 122 | StartGameRequest: function(opponent, gameType) { 123 | this.opponent = opponent; 124 | this.gameType = gameType; 125 | }, 126 | 127 | /** 128 | * Serialize message from JSON to byte. 129 | *
130 | * Primarily used for libGDX client. 131 | * Constructor. 132 | * @param type This message type 133 | */ 134 | TransformerMessage: function(type) { 135 | this.type = type; 136 | }, 137 | 138 | /** 139 | * Message for a game entity to use a certain ability. 140 | *
141 | * Game entities (e.g., cards, players) may have one or more ability actions that they can perform. 142 | * Certain abilities can have multiple targets, hence the use of an array. 143 | * @constructor. (multiple targets) 144 | *
145 | * Used for multiple target actions. 146 | * 147 | * @param gameId This current game 148 | * @param entity This game entity performing an action 149 | * @param action This action 150 | * @param targets The set of multiple targets affected by this action 151 | */ 152 | UseAbilityMessage: function(gameId, id, action, targets) { 153 | this.gameId = gameId; 154 | this.id = id; 155 | this.action = action; 156 | this.targets = targets; 157 | 158 | this.toString = function() { 159 | return "UseAbilityMessage" + 160 | "[id=" + this.id + 161 | ", action=" + this.action + 162 | ", gameId=" + this.gameId + 163 | ", targets=" + this.targets.toString() + 164 | "]"; 165 | }; 166 | }, 167 | 168 | /** 169 | * Chat message in game lobby. 170 | *
171 | * These are messages printed to the game lobby which are visible to all users present at the time the message is posted.
172 | * @constructor
173 | * @param message The content of this chat message
174 | */
175 | ChatMessage: function(message) {
176 | this.chatId = MAIN_LOBBY;
177 | this.message = message;
178 |
179 | this.toString = function() {
180 | return "ChatMessage [chatId=" + chatId + ", message=" + message + ", from=" + from + "]";
181 | };
182 | },
183 |
184 | /**
185 | * Request to invite a player to start a new game.
186 | * @constructor
187 | * @param id The Id of this invite request
188 | * @param name The name of the player being invited
189 | * @param gameType The game type of this invite request
190 | */
191 | InviteRequest: function(id, name, gameType) {
192 | this.id = id;
193 | this.name = name;
194 | this.gameType = gameType;
195 | },
196 |
197 | /**
198 | * Response to an InviteRequest message.
199 | * @constructor
200 | * @param inviteId Id of this incoming InviteRequest message
201 | * @param accepted Whether or not the InviteRequest is accepted
202 | */
203 | InviteResponse: function(inviteId, accepted) {
204 | this.inviteId = inviteId;
205 | this.accepted = accepted;
206 | },
207 |
208 | /**
209 | * Player configuration for a given game.
210 | * @constructor
211 | * @param gameId This game
212 | * @param modName The mod name for this game
213 | * @param configs Map of player name and applicable player configuration
214 | */
215 | PlayerConfigMessage: function(gameId, modName, configs) {
216 | this.gameId = gameId;
217 | this.modName = modName;
218 | this.configs = configs;
219 |
220 | this.toString = function() {
221 | return "PlayerConfigMessage{" +
222 | "configs=" + configs +
223 | ", gameId=" + gameId +
224 | ", modName='" + modName + '\'' +
225 | '}';
226 | };
227 | }
228 | }
229 | };
230 | },
231 | methods: {
232 |
233 | /**
234 | * Initializes the API for use.
235 | *
236 | * @param server:string -- The server that to be connected to.
237 | * @param isSecure:boolean -- Whether or not the server is being connected to with wss
238 | *
239 | * This sets up all the message types to inherit the main `Message` class, and sets
240 | * up the websocket that will be used to communicate to the server, and to recieve
241 | * information from the server.
242 | *
243 | */
244 | init(server, isSecure, onReady, onError) {
245 | var types = this.messageTypes;
246 |
247 | types.LoginMessage.prototype = new Message("login");
248 | types.RequestTargetsMessage.prototype = new Message("requestTargets");
249 | types.ServerQueryMessage.prototype = new Message("query");
250 | types.StartGameRequest.prototype = new Message("startgame");
251 | types.TransformerMessage.prototype = new Message("serial");
252 | types.UseAbilityMessage.prototype = new Message("use");
253 | types.ChatMessage.prototype = new Message("chat");
254 | types.InviteRequest.prototype = new Message("inviteRequest");
255 | types.InviteResponse.prototype = new Message("inviteResponse");
256 | types.PlayerConfigMessage.prototype = new Message("playerconfig");
257 | NotInitializedException.prototype = new Error();
258 | SocketNotReadyException.prototype = new Error();
259 |
260 | // secure websocket is wss://, rather than ws://
261 | var secureAddon = (isSecure ? "s" : "");
262 | // if the protocol is not found in the string, store the correct protocol (is secure?)
263 | var protocolAddon = (wsProtocolFinder.test(server) ? "" : "ws" + secureAddon + "://");
264 | var socket = new WebSocket(protocolAddon + server);
265 |
266 | socket.onopen = onReady;
267 | socket.onmessage = this.recieve;
268 |
269 | socket.onerror = function() {
270 | onError();
271 | this.socket = null;
272 | }
273 |
274 | this.socket = socket;
275 | },
276 |
277 | recieve(message) {
278 | var data = JSON.parse(message.data);
279 | var command = data.command;
280 | console.log("Message received: " + JSON.stringify(data));
281 | this.$emit(`type:${data.command}`, data);
282 | },
283 |
284 | /**
285 | * Sends a message to the server
286 | *
287 | * @param message:Message -- The message to send
288 | * @error SocketNotReadyException -- The socket is not ready to be used
289 | * @error NotInitializedException -- The API has not yet been initialized
290 | */
291 | sendMessage(message) {
292 | var socket = this.socket;
293 | if (socket) {
294 | if (socket.readyState === SOCKET_OPEN) {
295 | let msgData = JSON.stringify(flatten(message));
296 | this.socket.send(msgData);
297 | console.log("Sending to server: " + msgData);
298 | } else {
299 | throw new SocketNotReadyException("The Websocket is not ready to be used.", socket.readyState);
300 | }
301 | } else {
302 | throw new NotInitializedException("The API has not yet been initialized.");
303 | }
304 | }
305 | }
306 | });
307 |
308 | export default CardshifterServerAPI;
309 |
--------------------------------------------------------------------------------
/src/components/Login.vue:
--------------------------------------------------------------------------------
1 |
2 | Refreshing... To begin playing, first select the server you would like to connect to: Then enter a user name and click Log in. A dystopian, cyberpunk themed game featuring human factions, war machines and interplanetary conflict. Magical and Mythical Creatures clash while Gods, Goddesses and Heroes of Legend fight for human worship.Server Status
6 |
8 |
9 |
36 |
37 |
10 |
18 | Server
11 | Online
12 | Users
13 | Mods
14 | Games
15 | AIs
16 | Latency
17 |
19 |
35 | {{server.name}}
20 | {{server.isOnline ? "true" : "false"}}
21 | {{!server.userCount ? '-' : `${server.userCount - 1} ${server.userCount - 1 === 1 ? 'user' : 'users'}`}}
22 |
23 |
31 |
24 |
30 | {{!server.gamesRunning ? '-' : `${server.gamesRunning} ${server.gamesRunning === 1 ? 'game' : 'games'}`}}
32 | {{!server.ais ? '-' : `${server.ais} ${server.ais === 1 ? 'AI' : 'AIs'}`}}
33 | {{! server.latency ? '-' : `${server.latency} ms`}}
34 | Please log in to continue, or see below for instructions and assistance.
42 |
43 |
72 |
73 |
74 |
75 | Getting started
77 |
78 |
80 |
84 | Cyborg Chronicles
87 | MYTHOS
94 |
102 |
103 |
105 | On GitHub
5 |
82 |
6 |
13 | Lobby
7 |
8 |
11 |
12 |
14 |
25 |
15 |
24 |
17 |
18 |
19 |
22 |
26 |
30 |
27 |
29 |
31 |
32 |
34 | Users Online
33 |
35 |
43 |
54 |
44 |
53 |
45 |
52 |
55 |
61 |
65 |
62 |
63 |
64 |
66 |
81 |
67 |
79 |
80 | Loading Deck Builder...
6 | Deck name: {{deckName}}
10 | {{totalSelected}} / {{maxCards}}
11 |
12 |
21 |
22 |
23 |
28 |
29 |
31 |