Skip to content

Commit 45c0437

Browse files
webnext to web (#195)
* content tweaks * remove old web * rename webnext -> web * readd ui submodule * Update vite.config.ts
1 parent 93d3367 commit 45c0437

364 files changed

Lines changed: 2921 additions & 20068 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
target/
22
web/node_modules
33
web/dist
4-
webnext/node_modules
5-
webnext/dist
64
.volumes/
75
.github/
86
docs/

.github/workflows/lint-web.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ jobs:
3232
with:
3333
node-version: 24
3434
- name: install deps
35-
working-directory: ./webnext
35+
working-directory: ./web
3636
run: |
3737
npm i -g pnpm
3838
pnpm i --frozen-lockfile
3939
- name: Build translations
40-
working-directory: ./webnext
40+
working-directory: ./web
4141
run: pnpm dlx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/paraglide
4242
- name: Lint
43-
working-directory: ./webnext
43+
working-directory: ./web
4444
run: pnpm lint
4545
- name: Audit
46-
working-directory: ./webnext
46+
working-directory: ./web
4747
run: pnpm audit --prod

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ jobs:
122122
with:
123123
node-version: 24
124124
cache: "pnpm"
125-
cache-dependency-path: ./webnext/pnpm-lock.yaml
125+
cache-dependency-path: ./web/pnpm-lock.yaml
126126

127127
- name: Install frontend dependencies
128128
run: pnpm install --ignore-scripts --frozen-lockfile
129-
working-directory: webnext
129+
working-directory: web
130130

131131
- name: Build frontend
132132
run: pnpm build
133-
working-directory: webnext
133+
working-directory: web
134134

135135
- name: Build release binary
136136
uses: actions-rs/cargo@v1

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "web/src/shared/defguard-ui"]
55
path = web/src/shared/defguard-ui
66
url = git@github.com:DefGuard/ui.git
7-
[submodule "webnext/src/shared/defguard-ui"]
8-
path = webnext/src/shared/defguard-ui
9-
url = git@github.com:DefGuard/ui.git

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM node:24-alpine AS web
22

33
WORKDIR /app
4-
COPY webnext/package.json webnext/pnpm-lock.yaml ./
4+
COPY web/package.json web/pnpm-lock.yaml ./
55
RUN npm i -g pnpm
66
RUN pnpm install --ignore-scripts --frozen-lockfile
7-
COPY webnext/ .
7+
COPY web/ .
88
RUN pnpm build
99

1010
FROM rust:1 AS chef
@@ -28,7 +28,7 @@ COPY --from=planner /build/recipe.json recipe.json
2828
RUN cargo chef cook --release --recipe-path recipe.json
2929

3030
# build project
31-
COPY --from=web /app/dist ./webnext/dist
31+
COPY --from=web /app/dist ./web/dist
3232
RUN apt-get update && apt-get -y install protobuf-compiler libprotobuf-dev
3333
COPY Cargo.toml Cargo.lock build.rs ./
3434
# for vergen

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cargo run
4646
To run webapp dev server:
4747

4848
```bash
49-
cd webnext/
49+
cd web/
5050
pnpm install
5151
pnpm run dev
5252
```

src/assets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub async fn index() -> impl IntoResponse {
1616
}
1717

1818
#[derive(Embed)]
19-
#[folder = "webnext/"]
19+
#[folder = "web/"]
2020
#[include = "dist/*"]
2121
struct WebAsset;
2222

web/.editorconfig

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,5 @@ insert_final_newline = true
77
indent_style = space
88
indent_size = 2
99

10-
[*.{ts,tsx}]
11-
indent_style = space
12-
indent_size = 2
10+
[*.{ts,tsx,js,jsx,scss,html,json,yaml}]
1311
rulers = 90
14-
15-
[*.{scss}]
16-
indent_style = space
17-
indent_size = 2
18-
rulers = 90
19-
20-
[*.{html}]
21-
indent_style = space
22-
indent_size = 2
23-
rulers = 90
24-
25-
[*.{json,yaml}]
26-
indent_style = space
27-
indent_size = 2
28-
rulers = 80

web/.env.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_UPDATE_BASE_URL="/update/api"
2+
UPDATE_TARGET_URL=""

0 commit comments

Comments
 (0)