forked from motis-project/soro-s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild web client using npm, ts and vuejs (#1)
- Loading branch information
1 parent
b92c8e5
commit 5ea287c
Showing
114 changed files
with
11,131 additions
and
26,352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_subdirectory(server) | ||
add_subdirectory(client) | ||
|
||
add_custom_target(soro-server-client) | ||
add_dependencies(soro-server-client soro-server) | ||
add_dependencies(soro-server-client soro-client-production) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:vue/vue3-essential', | ||
'plugin:vue/vue3-recommended', | ||
'@vue/eslint-config-typescript', | ||
'@vue/eslint-config-typescript/recommended', | ||
], | ||
overrides: [], | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
ecmaVersion: 'latest', | ||
sourceType: 'module' | ||
}, | ||
plugins: [ | ||
'vue', | ||
'@typescript-eslint' | ||
], | ||
rules: { | ||
'indent': [ | ||
'error', | ||
4 | ||
], | ||
'curly': [ | ||
'error', | ||
'all' | ||
], | ||
'brace-style': [ | ||
'error', | ||
'1tbs' | ||
], | ||
'function-paren-newline': [ | ||
'error', | ||
'multiline' | ||
], | ||
'linebreak-style': [ | ||
'error', | ||
'unix' | ||
], | ||
'quotes': [ | ||
'error', | ||
'single' | ||
], | ||
'semi': [ | ||
'error', | ||
'always' | ||
], | ||
'comma-dangle': [ | ||
'error', | ||
'only-multiline', | ||
], | ||
'object-curly-spacing': [ | ||
'error', | ||
'always', | ||
], | ||
'object-shorthand': [ | ||
'error', | ||
'properties', | ||
{ avoidQuotes: true } | ||
], | ||
'vue/html-indent': [ | ||
'error', | ||
4, | ||
], | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-standard-scss", | ||
"stylelint-config-recommended-vue" | ||
], | ||
"ignoreFiles": ["**/*.js", "**/*.ts"], | ||
"rules": { | ||
"indentation": 4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.18) | ||
project(soro) | ||
|
||
file(GLOB_RECURSE soro-client-files | ||
*.html | ||
*.css | ||
*.js | ||
*.ico | ||
*.png | ||
*.svg | ||
*.map) | ||
|
||
foreach (file ${soro-client-files}) | ||
set(path ${file}) | ||
cmake_path(RELATIVE_PATH path BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE relative-path) | ||
configure_file(${file} ${SORO_SERVER_DIR}/server_resources/${relative-path} COPYONLY) | ||
endforeach () | ||
|
||
|
||
add_custom_target(soro-client-production COMMAND npm run build WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
add_custom_command(TARGET soro-client-production POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory | ||
${CMAKE_CURRENT_SOURCE_DIR}/dist | ||
${SORO_SERVER_DIR}/server_resources) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## SORO-S Webclient | ||
|
||
### Tools: | ||
- Node.js (preferably install via [nvm](https://github.com/nvm-sh/nvm)) | ||
|
||
### Setup: | ||
|
||
Have nodejs installed with npm available globally (enabled by default). Execute the following in this directory: | ||
|
||
```shell | ||
npm install | ||
``` | ||
|
||
### Development | ||
|
||
```shell | ||
npm run dev | ||
``` | ||
You can access the client with hmr now on the port shown in the console (usually [5173](http://localhost:5173)). | ||
|
||
### Building the web interface for production | ||
|
||
If you never ran ninja before, run it now in your `build/{clang,gcc}-release` directory. | ||
```shell | ||
ninja | ||
``` | ||
|
||
Then simply execute | ||
```shell | ||
ninja soro-client-production | ||
``` | ||
This target has also been added to the `soro-server-client` target for convenience. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
web/client/components/infrastructure/InfrastructureComponent.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.