Success!
-- You've successfully accepted the certificate. - You will now connecting to the target server in the original tab. -
- -diff --git a/client/css/static/main.scss b/client/css/static/main.scss deleted file mode 100644 index 47f6a545..00000000 --- a/client/css/static/main.scss +++ /dev/null @@ -1,29 +0,0 @@ -html, body { - border: 0; - margin: 0; -} - -.app-container { - right: 0; - left: 0; - top: 0; - bottom: 0; - - width: 100%; - height: 100%; - position: absolute; - display: flex; - justify-content: stretch; - - .app { - width: 100%; - height: 100%; - margin: 0; - - display: flex; flex-direction: column; resize: both; - } -} - -footer { - display: none!important; -} \ No newline at end of file diff --git a/client/js/index.scss b/client/js/index.scss new file mode 100644 index 00000000..83105f86 --- /dev/null +++ b/client/js/index.scss @@ -0,0 +1,31 @@ +:global { + html, body { + border: 0; + margin: 0; + } + + .app-container { + right: 0; + left: 0; + top: 0; + bottom: 0; + + width: 100%; + height: 100%; + position: absolute; + display: flex; + justify-content: stretch; + + .app { + width: 100%; + height: 100%; + margin: 0; + + display: flex; flex-direction: column; resize: both; + } + } + + footer { + display: none!important; + } +} \ No newline at end of file diff --git a/client/js/index.ts b/client/js/index.ts index 6805f46c..ffc8c0c6 100644 --- a/client/js/index.ts +++ b/client/js/index.ts @@ -1,4 +1,7 @@ declare const __webpack_require__; window["shared-require"] = __webpack_require__; + +import "./index.scss"; + /* firstly assign the shared-require */ setTimeout(() => require("tc-shared/main"), 0); \ No newline at end of file diff --git a/file.ts b/file.ts index 8a9db215..e0404159 100644 --- a/file.ts +++ b/file.ts @@ -62,47 +62,6 @@ const APP_FILE_LIST_SHARED_SOURCE: ProjectResource[] = [ "path": "css/", "local-path": "./loader/css/" }, - { /* shared developer single css files */ - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "dev", - - "path": "css/", - "local-path": "./shared/css/" - }, - { /* shared css mapping files (development mode only) */ - "type": "css", - "search-pattern": /.*\.(css.map|scss)$/, - "build-target": "dev", - - "path": "css/", - "local-path": "./shared/css/", - "req-parm": ["--mappings"] - }, - { /* shared release css files */ - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "rel", - - "path": "css/", - "local-path": "./shared/generated/" - }, - { /* shared release css files */ - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "rel", - - "path": "css/loader/", - "local-path": "./shared/css/loader/" - }, - { /* shared release css files */ - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "dev|rel", - - "path": "css/theme/", - "local-path": "./shared/css/theme/" - }, { /* shared sound files */ "type": "wav", "search-pattern": /.*\.wav$/, @@ -129,17 +88,7 @@ const APP_FILE_LIST_SHARED_SOURCE: ProjectResource[] = [ } ]; -const APP_FILE_LIST_SHARED_VENDORS: ProjectResource[] = [ - { - "type": "js", - "search-pattern": /.*(\.min)?\.js$/, - "build-target": "dev|rel", - "search-exclude": /.*xbbcode.*/g, - - "path": "vendor/", - "local-path": "./vendor/" - } -]; +const APP_FILE_LIST_SHARED_VENDORS: ProjectResource[] = []; const APP_FILE_LIST_CLIENT_SOURCE: ProjectResource[] = [ { /* client css files */ @@ -172,24 +121,6 @@ const APP_FILE_LIST_WEB_SOURCE: ProjectResource[] = [ "path": "wasm/", "local-path": "./web/native-codec/generated/" }, - { /* web css files */ - "web-only": true, - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "dev|rel", - - "path": "css/", - "local-path": "./web/css/" - }, - { /* web html files */ - "web-only": true, - "type": "html", - "search-pattern": /.*\.(html)/, - "build-target": "dev|rel", - - "path": "./", - "local-path": "./web/html/" - }, { /* translations */ "web-only": true, /* Only required for the web client */ "type": "i18n", @@ -201,98 +132,6 @@ const APP_FILE_LIST_WEB_SOURCE: ProjectResource[] = [ } ]; -//FIXME: This isn't working right now -const CERTACCEPT_FILE_LIST: ProjectResource[] = [ - { /* html files */ - "type": "html", - "search-pattern": /^([a-zA-Z]+)\.(html|json)$/, - "build-target": "dev|rel", - - "path": "./popup/certaccept/", - "local-path": "./shared/popup/certaccept/html/" - }, - - { /* javascript loader (debug) */ - "type": "js", - "search-pattern": /(loader|certaccept)\.js$/, - "build-target": "dev", - - "path": "./popup/certaccept/loader/", - "local-path": "./shared/loader/" - }, - { /* javascript loader (releases) */ - "type": "js", - "search-pattern": /.*loader_certaccept.min.js$/, - "build-target": "rel", - - "path": "./popup/certaccept/loader/", - "local-path": "./shared/generated/" - }, - - { /* javascript imported from shared for debug */ - "type": "js", - "search-pattern": /^(BrowserIPC|log|proto|settings)\.js$/, - "build-target": "dev", - - "path": "./popup/certaccept/js/", - "local-path": "./shared/js/" - }, - - { /* javascript for debug */ - "type": "js", - "search-pattern": /^certaccept\.min\.js$/, - "build-target": "rel", - - "path": "./popup/certaccept/js/", - "local-path": "./shared/generated/" - }, - - { /* javascript for release */ - "type": "js", - "search-pattern": /^.*\.js$/, - "build-target": "dev", - - "path": "./popup/certaccept/js/", - "local-path": "./shared/popup/certaccept/js/" - }, - - { /* shared css files */ - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "dev|rel", - - "path": "./popup/certaccept/css/loader/", - "local-path": "./shared/css/loader/" - }, - - { /* shared css files */ - "type": "css", - "search-pattern": /.*\.css$/, - "build-target": "dev|rel", - - "path": "./popup/certaccept/css/static/", - "local-path": "./shared/popup/certaccept/css/static/" - }, - - { /* img files */ - "type": "img", - "search-pattern": /^(loading_error.*)\.(svg)$/, - "build-target": "dev|rel", - - "path": "./popup/certaccept/img/", - "local-path": "./shared/img/" - }, - - { /* jquery vendor */ - "type": "js", - "search-pattern": /^jquery\/.*\.js$/, - "build-target": "dev|rel", - - "path": "./popup/certaccept/vendor/", - "local-path": "./vendor/" - }, -]; - const CLIENT_APP_FILE_LIST = [ ...APP_FILE_LIST_SHARED_SOURCE, ...APP_FILE_LIST_SHARED_VENDORS, @@ -303,7 +142,6 @@ const WEB_APP_FILE_LIST = [ ...APP_FILE_LIST_SHARED_SOURCE, ...APP_FILE_LIST_SHARED_VENDORS, ...APP_FILE_LIST_WEB_SOURCE, - ...CERTACCEPT_FILE_LIST, ]; //@ts-ignore diff --git a/loader/app/targets/app.ts b/loader/app/targets/app.ts index 60fcbb6b..a3957961 100644 --- a/loader/app/targets/app.ts +++ b/loader/app/targets/app.ts @@ -68,76 +68,6 @@ const loader_webassembly = { } }; -const loader_style = { - load_style: async taskId => { - if(__build.mode === "debug") { - await loader_style.load_style_debug(taskId); - } else { - await loader_style.load_style_release(taskId); - } - }, - - load_style_debug: async taskId => { - await loader.style.load_multiple([ - "css/static/main.css", - "css/static/main-layout.css", - "css/static/scroll.css", - "css/static/channel-tree.css", - "css/static/ts/tab.css", - "css/static/ts/icons.css", - "css/static/ts/icons_em.css", - "css/static/ts/country.css", - "css/static/general.css", - "css/static/modal.css", - "css/static/modals.css", - "css/static/modal-about.css", - "css/static/modal-avatar.css", - "css/static/modal-icons.css", - "css/static/modal-bookmarks.css", - "css/static/modal-connect.css", - "css/static/modal-channel.css", - "css/static/modal-query.css", - "css/static/modal-latency.css", - "css/static/modal-invite.css", - "css/static/modal-banlist.css", - "css/static/modal-banclient.css", - "css/static/modal-channelinfo.css", - "css/static/modal-clientinfo.css", - "css/static/modal-serverinfo.css", - "css/static/modal-musicmanage.css", - "css/static/modal-serverinfobandwidth.css", - "css/static/modal-identity.css", - "css/static/modal-newcomer.css", - "css/static/modal-settings.css", - "css/static/modal-poke.css", - "css/static/modal-server.css", - "css/static/modal-keyselect.css", - "css/static/modal-group-assignment.css", - "css/static/overlay-image-preview.css", - "css/static/context_menu.css", - "css/static/frame-chat.css", - "css/static/connection_handlers.css", - "css/static/server-log.css", - "css/static/htmltags.css", - "css/static/hostbanner.css", - "css/static/menu-bar.css" - ], { - cache_tag: cache_tag(), - max_parallel_requests: -1 - }, LoaderTaskCallback(taskId)); - }, - - load_style_release: async taskId => { - await loader.style.load_multiple([ - "css/static/base.css", - "css/static/main.css", - ], { - cache_tag: cache_tag(), - max_parallel_requests: -1 - }, LoaderTaskCallback(taskId)); - } -}; - loader.register_task(loader.Stage.INITIALIZING, { name: "secure tester", function: async () => { @@ -165,12 +95,6 @@ loader.register_task(loader.Stage.JAVASCRIPT, { priority: 10 }); -loader.register_task(loader.Stage.STYLE, { - name: "style", - function: loader_style.load_style, - priority: 10 -}); - loader.register_task(loader.Stage.TEMPLATES, { name: "templates", function: async taskId => { diff --git a/package.json b/package.json index 745e63f8..21bd18ea 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,15 @@ { - "name": "client", + "name": "teaspeak-web", "version": "1.2.0", "description": "Welcome here! This repository is created with two reasons:\n 1. People can bring their own ideas and follow their implementation\n 2. People can see TeaSpeak Web client progress and avoid creating repetitive issues all the time.", - "main": "main.js", - "directories": {}, "scripts": { - "compile-sass": "sass --update shared/css/:shared/css/ loader/css/:loader/css/ web/css/:web/css/ client/css/:client/css/ vendor/:vendor/", "compile-project-base": "tsc -p tsbaseconfig.json", "dtsgen": "node tools/dtsgen/index.js", "trgen": "node tools/trgen/index.js", - "sass": "sass", - "csso": "csso", "tsc": "tsc", "start": "npm run compile-project-base && node file.js ndevelop", "build-web": "webpack --config webpack-web.config.js", - "develop-web": "npm run compile-project-base && node file.js develop web", "build-client": "webpack --config webpack-client.config.js", - "develop-client": "npm run compile-project-base && node file.js develop client", "webpack-web": "webpack --config webpack-web.config.js", "webpack-client": "webpack --config webpack-client.config.js", "generate-i18n-gtranslate": "node shared/generate_i18n_gtranslate.js" @@ -24,6 +17,7 @@ "author": "TeaSpeak (WolverinDEV)", "license": "ISC", "devDependencies": { + "@types/jsrender": "^1.0.5", "@babel/core": "^7.10.4", "@babel/plugin-transform-runtime": "^7.10.4", "@babel/preset-env": "^7.10.4", @@ -89,7 +83,6 @@ }, "homepage": "https://www.teaspeak.de", "dependencies": { - "@types/jsrender": "^1.0.5", "detect-browser": "^5.1.1", "dompurify": "^2.0.8", "emoji-mart": "git+https://github.com/WolverinDEV/emoji-mart.git", diff --git a/scripts/build.sh b/scripts/build.sh index d3e472e7..cc4e3aec 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -49,36 +49,7 @@ if [[ $_exit_code -ne 0 ]]; then exit 1 fi -echo "Generating style files" -npm run compile-sass; _exit_code=$? -if [[ $_exit_code -ne 0 ]]; then - echo "Failed to generate style files" - exit 1 -fi - -echo "Compile vendor XBBCode" -execute_tsc -p ./vendor/xbbcode/tsconfig.json; _exit_code=$? -if [[ $_exit_code -ne 0 ]]; then - echo "Failed to build the XBBCode vendor" - exit 1 -fi - -echo "Compile vendor emoji-picker" -execute_tsc ./vendor/emoji-picker/src/jquery.lsxemojipicker.ts -if [[ $_exit_code -ne 0 ]]; then - echo "Failed to build the emoji-picker vendor" - exit 1 -fi - if [[ "$build_type" == "release" ]]; then # Compile everything for release mode - echo "Packing generated css files" - chmod +x ./shared/css/generate_packed.sh - ./shared/css/generate_packed.sh; _exit_code=$? - if [[ $_exit_code -ne 0 ]]; then - echo "Failed to package generated css files" - exit 1 - fi - NODE_ENV=production npm run build-$build_target; _exit_code=$? if [[ $_exit_code -ne 0 ]]; then echo "Failed to build the $build_target applcation" diff --git a/shared/css/load-css.tsx b/shared/css/load-css.tsx new file mode 100644 index 00000000..d2fdc61b --- /dev/null +++ b/shared/css/load-css.tsx @@ -0,0 +1,43 @@ +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/properties.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/main-layout.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/general.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/channel-tree.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/connection_handlers.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/context_menu.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/frame-chat.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/server-log.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/scroll.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/hostbanner.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/htmltags.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/menu-bar.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/mixin.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modals.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-about.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-avatar.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-banclient.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-banlist.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-bookmarks.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-channel.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-channelinfo.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-clientinfo.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-connect.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-group-assignment.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-icons.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-identity.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-newcomer.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-invite.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-keyselect.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-poke.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-query.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-server.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-musicmanage.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-serverinfobandwidth.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-serverinfo.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/modal-settings.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/overlay-image-preview.scss" + +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/ts/tab.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/ts/icons.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/ts/icons_em.scss" +import "!style-loader!css-loader?url=false!sass-loader?sourceMap=true!./static/ts/country.scss" \ No newline at end of file diff --git a/shared/js/main.tsx b/shared/js/main.tsx index 8c41ecf9..f4da9344 100644 --- a/shared/js/main.tsx +++ b/shared/js/main.tsx @@ -35,6 +35,7 @@ import {copy_to_clipboard} from "tc-shared/utils/helpers"; import ContextMenuEvent = JQuery.ContextMenuEvent; /* required import for init */ +import "../css/load-css" import "./proto"; import "./ui/elements/ContextDivider"; import "./ui/elements/Tab"; diff --git a/shared/popup/certaccept/css/static/main.scss b/shared/popup/certaccept/css/static/main.scss deleted file mode 100644 index b8c20d13..00000000 --- a/shared/popup/certaccept/css/static/main.scss +++ /dev/null @@ -1,66 +0,0 @@ -body { - position: fixed; - - top: 0; - bottom: 0; - left: 0; - right: 0; - - margin: 0; - padding: 0; - - background-color: #212529; -} - -#container-success { - height: 100%; - - display: flex; - flex-direction: column; - justify-content: stretch; - - .container { - flex-grow: 0; - flex-shrink: 0; - - align-self: center; - - color: #999999; - background-color: #19191b; - - border-radius: 5px; - overflow: hidden; - - margin: 1em; - - max-width: 80%; - width: 40em; - - .content { - padding: 1em; - - border-left: 2px solid #00d400; - - a { - display: block; - font-size: 1.2em; - } - } - } - - .spacer-top { - flex-shrink: 1; - flex-grow: 1; - - height: 10%; - min-height: 0; - } - - .spacer-bottom { - flex-shrink: 1; - flex-grow: 4; - - height: 10%; - min-height: 0; - } -} \ No newline at end of file diff --git a/shared/popup/certaccept/html/index.php b/shared/popup/certaccept/html/index.php deleted file mode 100644 index 812cda5a..00000000 --- a/shared/popup/certaccept/html/index.php +++ /dev/null @@ -1,112 +0,0 @@ - - -
- - -