Skip to content

Commit

Permalink
feat(web): update web frontend page: rewrite web frontend using react…
Browse files Browse the repository at this point in the history
… and evergreen-ui
  • Loading branch information
genshen committed Feb 1, 2021
1 parent c85f542 commit 170d24b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
@@ -1,3 +1,3 @@
[submodule "web"]
path = web
url = git@github.com:genshen/webConsole.git
url = https://github.com/genshen/webConsole.git
5 changes: 3 additions & 2 deletions Dockerfile
Expand Up @@ -13,13 +13,14 @@ RUN cd web-console \
FROM golang:1.13.1-alpine AS builder

# set to 'on' if using go module
ARG STATIC_DIR=dist
ARG STATIC_DIR=build


RUN apk add --no-cache git \
&& go get -u github.com/rakyll/statik

COPY ./ /go/src/github.com/genshen/ssh-web-console/
COPY --from=frontend-builder web-console/dist /go/src/github.com/genshen/ssh-web-console/${STATIC_DIR}/
COPY --from=frontend-builder web-console/build /go/src/github.com/genshen/ssh-web-console/${STATIC_DIR}/

RUN cd ./src/github.com/genshen/ssh-web-console/ \
&& statik -src=${STATIC_DIR} \
Expand Down
2 changes: 1 addition & 1 deletion web
Submodule web updated 68 files
+0 −14 .eslintrc.js
+21 −0 .eslintrc.yml
+18 −14 .gitignore
+17 −0 .prettierignore
+13 −0 .prettierrc
+4 −7 README.md
+0 −3 babel.config.js
+9 −0 config-overrides.js
+76 −80 package.json
+32 −17 public/index.html
+9 −4 public/manifest.json
+1 −0 public/robots.txt
+9 −0 src/App.test.tsx
+17 −0 src/App.tsx
+0 −23 src/App.vue
+326 −0 src/components/Console.tsx
+0 −331 src/components/Console.vue
+684 −0 src/components/FileTrans.tsx
+0 −76 src/components/Footer.vue
+62 −0 src/components/Home.tsx
+0 −60 src/components/Home.vue
+80 −0 src/components/PathNav.tsx
+151 −0 src/components/SftpUpload.tsx
+0 −210 src/components/SignIn.vue
+288 −0 src/components/Signin.tsx
+46 −0 src/components/console.less
+103 −0 src/components/file_trans.less
+0 −293 src/components/filetree/FileTree.vue
+0 −275 src/components/filetree/FileUpload.vue
+51 −0 src/components/home.less
+38 −0 src/components/layout/Footer.tsx
+28 −0 src/components/layout/Header.tsx
+34 −0 src/components/layout/footer.less
+6 −0 src/components/layout/header.less
+3 −0 src/components/sftp_upload.less
+240 −0 src/components/term/XTerm.tsx
+52 −0 src/components/term/term_theme.ts
+0 −23 src/config/api_routers.js
+23 −0 src/config/api_routers.ts
+0 −54 src/config/config.js
+62 −0 src/config/config.ts
+0 −52 src/config/terminal_theme.js
+13 −0 src/index.less
+29 −0 src/index.tsx
+0 −57 src/libs/sshwebsocket.js
+60 −0 src/libs/sshwebsocket.ts
+0 −13 src/libs/string_format.js
+13 −0 src/libs/string_format.ts
+0 −20 src/libs/terminal-resize.js
+27 −0 src/libs/terminal-resize.ts
+0 −46 src/libs/utils.js
+43 −0 src/libs/utils.ts
+56 −0 src/locales/i18n.ts
+0 −28 src/locales/index.js
+0 −128 src/locales/locales.js
+166 −0 src/locales/locales.ts
+0 −20 src/main.js
+1 −0 src/react-app-env.d.ts
+0 −28 src/registerServiceWorker.js
+15 −0 src/reportWebVitals.ts
+0 −49 src/router/index.js
+80 −0 src/service-worker.ts
+146 −0 src/serviceWorkerRegistration.ts
+5 −0 src/setupTests.ts
+0 −7 src/vendors.js
+26 −0 tsconfig.json
+0 −51 vue.config.js
+6,989 −5,167 yarn.lock

0 comments on commit 170d24b

Please sign in to comment.