Skip to content

Commit

Permalink
Merge pull request runejs#14 from rune-js/remove-vue
Browse files Browse the repository at this point in the history
Removing VueJS ui from the project.
  • Loading branch information
TheBlackParade authored Dec 29, 2019
2 parents 857ff07 + c30d3a4 commit 5650b5e
Show file tree
Hide file tree
Showing 62 changed files with 479 additions and 12,229 deletions.
2 changes: 0 additions & 2 deletions .browserslistrc

This file was deleted.

33 changes: 0 additions & 33 deletions app.js

This file was deleted.

5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

12,373 changes: 469 additions & 11,904 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 6 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
"name": "rune.js",
"version": "0.1.0",
"description": "",
"main": "src/server/game-server.ts",
"main": "src/game-server.ts",
"scripts": {
"server": "ts-node ./src/server/main.ts",
"ui": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"start": "concurrently \"npm run server\" \"npm run ui\""
"server": "ts-node src/main.ts",
"start": "npm run server"
},
"repository": {
"type": "git",
Expand All @@ -23,27 +20,14 @@
"dependencies": {
"@runejs/cache-parser": "^0.1.2",
"@runejs/logger": "^1.0.0",
"axios": "^0.19.0",
"bigi": "^1.4.2",
"core-js": "^3.4.3",
"express": "^4.17.1",
"ts-node": "^8.4.1",
"typescript": "^3.7.2",
"vue": "^2.6.10",
"vue-class-component": "^7.0.2",
"vue-property-decorator": "^8.3.0",
"vue-router": "^3.1.3"
"tslib": "^1.10.0",
"typescript": "^3.7.2"
},
"devDependencies": {
"@types/express": "^4.17.2",
"@types/node": "^12.12.6",
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-typescript": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"concurrently": "^5.0.2",
"node-sass": "^4.12.0",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.10"
"@types/node": "^12.12.6"
}
}
Binary file removed public/favicon.ico
Binary file not shown.
18 changes: 0 additions & 18 deletions public/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion src/server/game-server.ts → src/game-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { GameCache } from '@runejs/cache-parser';

const GAME_SERVER_PORT = 43594;

export const serverDir = join(__dirname, '../../');
export const serverDir = join(__dirname, '../');
export const gameCache = new GameCache(join(serverDir, 'cache'));
export const world = new World();
world.chunkManager.generateCollisionMaps();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 0 additions & 33 deletions src/ui/App.vue

This file was deleted.

Binary file removed src/ui/assets/logo.png
Binary file not shown.
66 changes: 0 additions & 66 deletions src/ui/components/HelloWorld.vue

This file was deleted.

10 changes: 0 additions & 10 deletions src/ui/main.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/ui/router/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/ui/shims-tsx.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/ui/shims-vue.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/ui/views/About.vue

This file was deleted.

18 changes: 0 additions & 18 deletions src/ui/views/Home.vue

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { writeFileSync, readFileSync, existsSync } from 'fs';
import { join } from 'path';
import { logger } from '@runejs/logger/dist/logger';
import { Player } from './player';
import { serverDir } from '../../../../game-server';

export interface Appearance {
gender: number;
Expand Down Expand Up @@ -52,7 +53,7 @@ export function defaultAppearance(): Appearance {

export function savePlayerData(player: Player): boolean {
const fileName = player.username.toLowerCase() + '.json';
const filePath = join(__dirname, '../../../../../../data/saves', fileName);
const filePath = join(serverDir, 'data/saves', fileName);

const playerSave: PlayerSave = {
username: player.username,
Expand All @@ -77,7 +78,7 @@ export function savePlayerData(player: Player): boolean {

export function loadPlayerSave(username: string): PlayerSave {
const fileName = username.toLowerCase() + '.json';
const filePath = join(__dirname, '../../../../../../data/saves', fileName);
const filePath = join(serverDir, 'data/saves', fileName);

if(!existsSync(filePath)) {
return null;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 0 additions & 55 deletions tslint.json

This file was deleted.

13 changes: 0 additions & 13 deletions vue.config.js

This file was deleted.

0 comments on commit 5650b5e

Please sign in to comment.