From cbc27f17061ef3a833c58ece20efdf05a77ee7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 9 May 2019 15:53:11 +0200 Subject: [PATCH] legacy purge --- frontend/src/views/Home.vue | 6 --- src/game.coffee | 71 ------------------------ src/index.coffee | 105 ------------------------------------ src/usercp.coffee | 11 ---- views/game.pug | 6 --- views/index.pug | 53 ------------------ 6 files changed, 252 deletions(-) delete mode 100644 src/game.coffee delete mode 100644 src/index.coffee delete mode 100644 src/usercp.coffee delete mode 100644 views/game.pug delete mode 100644 views/index.pug diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 4bd2c75..f4fdce0 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -18,12 +18,6 @@ import RegisterForm from '@/components/forms/Register.vue' export default { name: 'Home', - data() { - return { - dialog: false - } - }, - components: { Header, LoginForm, diff --git a/src/game.coffee b/src/game.coffee deleted file mode 100644 index 01c5461..0000000 --- a/src/game.coffee +++ /dev/null @@ -1,71 +0,0 @@ -# libs -window.$ = require('jquery') - -# on load -$ -> - # libs requiring full DOM - require 'craftyjs/dist/crafty' - io = require 'socket.io-client' - - # style sheet - require './style/custom.scss' - - # fftcg libs - require './game/config.coffee' - require './game/components/Card.coffee' - require './game/scenes/Battle.coffee' - - # init Socket.IO - socket = io() - - # init CraftyJS framework - Crafty.init() - - # Load base scene - Crafty.scene "Battle" - - # Testing some entities - Crafty.sprite 480, 670, '//www.fftcgmognet.com/images/cards/hd/1/1/107.jpg', - shantotto: [ - 0 - 0 - ] - - backups = [ - - Crafty.e 'shantotto, AllyCard' - .attr { - card: - type: 'backup' - } - - Crafty.e 'shantotto, AllyCard' - .attr { - card: - type: 'backup' - } - - Crafty.e 'shantotto, AllyCard' - .attr { - card: - type: 'backup' - } - - ] - - Crafty 'AllyCard' - .each (index) -> - switch @card.type - when 'backup' - @trigger 'Place', - x: CONF.coord.x.main + index * CONF.coord.x.step - y: CONF.coord.y.bkup - return - - - Crafty.e 'shantotto, EnemyCard' - .trigger 'Place', - x: 900 - y: 0 - - return diff --git a/src/index.coffee b/src/index.coffee deleted file mode 100644 index 130bcc4..0000000 --- a/src/index.coffee +++ /dev/null @@ -1,105 +0,0 @@ -# libs -window.$ = require('jquery') - -# import bootstrap -require './style/custom.scss' -require 'bootstrap/js/dist/alert' - -window.showAlert = (level, content) -> - ($ '.alert').alert 'close' - - ($ '#alert-area').append ($ '
', - class: "alert alert-#{level} alert-dismissible fade show" - role: 'alert' - .append content, ($ '