├── .github └── dependabot.yml ├── .gitignore ├── .ncurc.js ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── localserver ├── .babelrc ├── .env ├── .gitignore ├── README.md ├── Routes │ ├── cards.js │ ├── home.js │ └── index.js ├── Views │ ├── card_error.pug │ ├── cards.pug │ ├── error.pug │ ├── home.pug │ ├── layout.production.pug │ ├── layout.pug │ └── layout │ │ ├── footer.pug │ │ └── nav.pug ├── app.js ├── favicon.ico ├── libs │ ├── boot.js │ ├── errorCatching.js │ └── middleware.js ├── package-lock.json ├── package.json ├── src │ ├── entry-js.js │ ├── images │ │ ├── patternbg.png │ │ └── wallpaper.jpg │ ├── js │ │ └── scripts │ │ │ └── app.js │ └── sass │ │ ├── includes │ │ ├── components │ │ │ ├── _demo.scss │ │ │ ├── _error.scss │ │ │ ├── _footer.scss │ │ │ └── _navbar.scss │ │ └── variables │ │ │ ├── _colors.scss │ │ │ └── _screens.scss │ │ ├── main.scss │ │ └── mixins │ │ ├── _box-shadow.scss │ │ ├── _gradient.scss │ │ ├── _make-square.scss │ │ ├── _position-absolute-center.scss │ │ ├── _rotate.scss │ │ ├── _themes.scss │ │ ├── _transition.scss │ │ └── _user-select.scss ├── webpack.config.js └── webpack.dev.config.js ├── package.json └── src ├── config.js ├── index.js ├── querybuilder.js ├── test ├── test-card.js ├── test-set.js ├── test-subtype.js ├── test-supertype.js └── test-type.js └── unqueryable.js /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.ncurc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | /** ESM only */ 3 | reject: ['chai'] 4 | } -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/README.md -------------------------------------------------------------------------------- /localserver/.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/.babelrc -------------------------------------------------------------------------------- /localserver/.env: -------------------------------------------------------------------------------- 1 | PORT=8080 2 | ENV=development 3 | -------------------------------------------------------------------------------- /localserver/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/.gitignore -------------------------------------------------------------------------------- /localserver/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/README.md -------------------------------------------------------------------------------- /localserver/Routes/cards.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Routes/cards.js -------------------------------------------------------------------------------- /localserver/Routes/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Routes/home.js -------------------------------------------------------------------------------- /localserver/Routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Routes/index.js -------------------------------------------------------------------------------- /localserver/Views/card_error.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/card_error.pug -------------------------------------------------------------------------------- /localserver/Views/cards.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/cards.pug -------------------------------------------------------------------------------- /localserver/Views/error.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/error.pug -------------------------------------------------------------------------------- /localserver/Views/home.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/home.pug -------------------------------------------------------------------------------- /localserver/Views/layout.production.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/layout.production.pug -------------------------------------------------------------------------------- /localserver/Views/layout.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/layout.pug -------------------------------------------------------------------------------- /localserver/Views/layout/footer.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/layout/footer.pug -------------------------------------------------------------------------------- /localserver/Views/layout/nav.pug: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/Views/layout/nav.pug -------------------------------------------------------------------------------- /localserver/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/app.js -------------------------------------------------------------------------------- /localserver/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/favicon.ico -------------------------------------------------------------------------------- /localserver/libs/boot.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/libs/boot.js -------------------------------------------------------------------------------- /localserver/libs/errorCatching.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/libs/errorCatching.js -------------------------------------------------------------------------------- /localserver/libs/middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/libs/middleware.js -------------------------------------------------------------------------------- /localserver/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/package-lock.json -------------------------------------------------------------------------------- /localserver/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/package.json -------------------------------------------------------------------------------- /localserver/src/entry-js.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/entry-js.js -------------------------------------------------------------------------------- /localserver/src/images/patternbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/images/patternbg.png -------------------------------------------------------------------------------- /localserver/src/images/wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/images/wallpaper.jpg -------------------------------------------------------------------------------- /localserver/src/js/scripts/app.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /localserver/src/sass/includes/components/_demo.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/includes/components/_demo.scss -------------------------------------------------------------------------------- /localserver/src/sass/includes/components/_error.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/includes/components/_error.scss -------------------------------------------------------------------------------- /localserver/src/sass/includes/components/_footer.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/includes/components/_footer.scss -------------------------------------------------------------------------------- /localserver/src/sass/includes/components/_navbar.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/includes/components/_navbar.scss -------------------------------------------------------------------------------- /localserver/src/sass/includes/variables/_colors.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/includes/variables/_colors.scss -------------------------------------------------------------------------------- /localserver/src/sass/includes/variables/_screens.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/includes/variables/_screens.scss -------------------------------------------------------------------------------- /localserver/src/sass/main.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/main.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_box-shadow.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_box-shadow.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_gradient.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_gradient.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_make-square.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_make-square.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_position-absolute-center.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_position-absolute-center.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_rotate.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_rotate.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_themes.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_themes.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_transition.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_transition.scss -------------------------------------------------------------------------------- /localserver/src/sass/mixins/_user-select.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/src/sass/mixins/_user-select.scss -------------------------------------------------------------------------------- /localserver/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/webpack.config.js -------------------------------------------------------------------------------- /localserver/webpack.dev.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/localserver/webpack.dev.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/package.json -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | endpoint: 'https://api.magicthegathering.io/v1' 3 | } 4 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/index.js -------------------------------------------------------------------------------- /src/querybuilder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/querybuilder.js -------------------------------------------------------------------------------- /src/test/test-card.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/test/test-card.js -------------------------------------------------------------------------------- /src/test/test-set.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/test/test-set.js -------------------------------------------------------------------------------- /src/test/test-subtype.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/test/test-subtype.js -------------------------------------------------------------------------------- /src/test/test-supertype.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/test/test-supertype.js -------------------------------------------------------------------------------- /src/test/test-type.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/test/test-type.js -------------------------------------------------------------------------------- /src/unqueryable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MagicTheGathering/mtg-sdk-javascript/HEAD/src/unqueryable.js --------------------------------------------------------------------------------