John Niang
|
5f8f8c6c29
|
Add dockerignore file to ignore node_modules folder while building docker image (#588)
#### What type of PR is this?
/kind optimization
/milestone 2.0
#### What this PR does / why we need it:
As I mentioned in the title, this PR mainly ignore the `node_modules` folder while copying current files into Docker daemon context. Because it is huge and unnecessary. Please see the size below:
```bash
--- /home/johnniang/workspaces/halo-dev/halo-admin ------------------------------------
736.4 MiB S 388.8 MiB [###################] /node_modules
12.2 MiB [ ] /.git
892.0 KiB [ ] /packages
616.0 KiB [ ] /src
292.0 KiB [ ] pnpm-lock.yaml
48.0 KiB [ ] /cypress
40.0 KiB [ ] /.github
36.0 KiB [ ] LICENSE
20.0 KiB [ ] /.husky
16.0 KiB [ ] /.changeset
12.0 KiB [ ] /public
```
- Before
```bash
Sending build context to Docker daemon 740MB
Step 1/15 : FROM node:lts-alpine as build-stage
---> b0cbdedc1b9d
Step 2/15 : ENV PNPM_VERSION 7.5.0
---> Using cache
---> 6184c581a0af
Step 3/15 : RUN apk --no-cache add curl
---> Using cache
---> 74b030c17e7b
Step 4/15 : RUN curl -sL https://unpkg.com/@pnpm/self-installer | node
```
- After
```bash
Sending build context to Docker daemon 12.59MB
Step 1/15 : FROM node:lts-alpine as build-stage
---> b0cbdedc1b9d
Step 2/15 : ENV PNPM_VERSION 7.5.0
---> Using cache
---> 6184c581a0af
Step 3/15 : RUN apk --no-cache add curl
---> Using cache
---> 74b030c17e7b
Step 4/15 : RUN curl -sL https://unpkg.com/@pnpm/self-installer | node
```
#### Does this PR introduce a user-facing change?
```release-note
None
```
|
2 years ago |
Ryan Wang
|
263f510111
|
fix: package import name of lodash.isequal
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ccffcd7261
|
chore: update github actions
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
d0b72738da
|
chore: fix @halo-dev/api-client dependency location
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
cd317a9bed
|
fix: the issue of redirection after login
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
da23dcfde1
|
docs: update readme
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
d154fc412e
|
feat: ui permission binding
see https://github.com/halo-dev/halo/pull/2260
|
2 years ago |
Ryan Wang
|
4bc71814d9
|
feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
d3d934093d
|
feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
0b9dba88b4
|
perf: add type support to usePluginStore
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
1567b52e15
|
chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
3bb9155230
|
chore: cleanup type definition
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
56b9dcaa61
|
feat: add change user password support
|
2 years ago |
Ryan Wang
|
31dbe5a0eb
|
fix: permission logic of super administrator
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
e8fd09205d
|
feat: support permission judgment of interface elements and routes
|
2 years ago |
Ryan Wang
|
74274ef78b
|
refactor: change role annotations name
change `plugin.halo.run/dependencies` to `rbac.authorization.halo.run/dependencies`
|
2 years ago |
Ryan Wang
|
9569b43dab
|
refactor: response structure of Extension list API
see halo-dev/halo#2244
|
2 years ago |
Ryan Wang
|
b866860177
|
fix: admin ui theme system not working in production env
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
3027293bd4
|
refactor: admin ui theme system
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
284edbbee1
|
refactor: removal of plugin batch operation
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
700e12cafd
|
refactor: api client
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ab0a7deda3
|
typo: configmapName -> configMapName
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
64240d3caf
|
chore: bump dependencies
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
9546abf1e2
|
feat: add granting roles for user support
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
dc1da8fc91
|
feat: add settings support to the plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
a4681ea8b1
|
fix: role creation
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ddbca25307
|
refactor: pagination component usage
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
86be841e28
|
feat: add pagination component
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ebc9756a8d
|
perf: refine dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
352f7a3acc
|
perf: open confirm dialog when changing plugin status
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ce17c6eff9
|
perf: refine tailwindcss config
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
d2c5998b5e
|
chore: add Dockerfile
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
b7d200f12b
|
feat: add url base config
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
9bf6d0f650
|
chore: bump @halo-dev/admin-shared version
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
871cfc51a0
|
chore: add changeset
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
8d357d47ae
|
chore: add changeset
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
7655134732
|
refactor: update get current login user api
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
8f95fce0e4
|
feat: support bulk modification of plugin status
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
086343ce74
|
feat: add formkit auto animate plugin
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
70f7b522f1
|
refactor: plugin enable/disable api
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
d15c1636bd
|
feat: config formkit styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
d4f40481ab
|
refactor: use formkit
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
abe0f3787d
|
perf: search input styles
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
f18951abd2
|
feat: refine roles management
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ace341efef
|
feat: get the currently logged-in user information
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
1d09bc5af3
|
feat: refine the configuration of unplugin-icons
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
2cf3b06a88
|
feat: add user login support
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
32955a4050
|
feat: add cookie header when requesting the api
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
ae4da4784c
|
chore: remove user-mock.ts file
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |
Ryan Wang
|
cd338f0b1f
|
feat: add dialog component
Signed-off-by: Ryan Wang <i@ryanc.cc>
|
2 years ago |