Skip to content

Commit

Permalink
rename termishare folder to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
qnkhuat committed Jan 16, 2022
1 parent 6f3ef9b commit 3847b4b
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 151 deletions.
19 changes: 0 additions & 19 deletions raw/index.html

This file was deleted.

114 changes: 0 additions & 114 deletions raw/index.js

This file was deleted.

5 changes: 2 additions & 3 deletions www/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "Termishare",
"version": "0.0.1",
"private": true,
"scripts": {
"clean": "rm -rf resources/frontend/static",
"shadow:watch": "shadow-cljs watch app",
"shadow:release": "shadow-cljs release app",
"postcss:watch": "TAILWIND_MODE=watch postcss src/termishare/css/*.css -o resources/frontend/static/main.css --verbose -w",
"postcss:release": "NODE_ENV=production postcss src/termishare/css/*.css -o resources/frontend/static/main.css --verbose",
"postcss:watch": "TAILWIND_MODE=watch postcss src/frontend/css/*.css -o resources/frontend/static/main.css --verbose -w",
"postcss:release": "NODE_ENV=production postcss src/frontend/css/*.css -o resources/frontend/static/main.css --verbose",
"dev": "npm run clean && run-p -l *:watch",
"release": "npm run clean && run-s *:release"
},
Expand Down
2 changes: 1 addition & 1 deletion www/shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:builds
{:app
{:target :browser
:modules {:main {:init-fn termishare.main/init}}
:modules {:main {:init-fn frontend.main/init}}
:output-dir "resources/frontend/static"
:compiler-options {:infer-externs :auto
:output-feature-set :es6}}}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns termishare.components.mui
(ns frontend.components.mui
(:require [reagent.core :as r]
["@mui/material/Button" :as MuiButton]
["@mui/material/FormControl" :as MuiFormControl]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns termishare.constants)
(ns frontend.constants)
;; Should reflect the constants in cli/pkg/message/message.go and cli/internal/cfg

;; message
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions www/src/termishare/main.cljs → www/src/frontend/main.cljs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns termishare.main
(ns frontend.main
(:require [bide.core :as bide]
[reagent.dom :as rd]
[termishare.route :as route]
[termishare.components.mui :refer [ThemeProvider]]
[frontend.route :as route]
[frontend.components.mui :refer [ThemeProvider]]
["@mui/material/styles" :refer [createTheme]]
[termishare.pages.roomID :refer [roomID]]
[termishare.pages.index :refer [index]]))
[frontend.pages.roomID :refer [roomID]]
[frontend.pages.index :refer [index]]))

(defonce router
(bide/router [["/" :home]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns termishare.pages.index
(:require [termishare.components.mui :refer [GitHubIcon TextField Button]]
[termishare.route :as route]
(ns frontend.pages.index
(:require [frontend.components.mui :refer [GitHubIcon TextField Button]]
[frontend.route :as route]
[lambdaisland.uri :refer [uri]]
[reagent.core :as r]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns termishare.pages.roomID
(ns frontend.pages.roomID
(:require [reagent.core :as r]
[termishare.constants :as const]
[termishare.route :as route]
[frontend.constants :as const]
[frontend.route :as route]
[lambdaisland.uri :refer [uri]]
["xterm" :as xterm]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns termishare.route
(ns frontend.route
(:require [reagent.core :as r]))

(defonce current-route (r/atom {:route-name nil
Expand Down

0 comments on commit 3847b4b

Please sign in to comment.