Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync code from refs/heads/dev/1.11.0 to enterprise #2962

Draft
wants to merge 245 commits into
base: enterprise
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
245 commits
Select commit Hold shift + click to select a range
6a826d2
chore(package): upgrade node version and use vite
Kinplemelon Sep 4, 2024
512c209
refactor(components etc): some dependency introduction paths
Kinplemelon Sep 4, 2024
12dcb66
refactor(global): env variable
Kinplemelon Sep 4, 2024
804261c
refactor(global): remove `require`
Kinplemelon Sep 4, 2024
4827d03
chore(package): use newer vite and support jsx
Kinplemelon Sep 5, 2024
b356c17
chore(package): use pnpm
Kinplemelon Sep 5, 2024
1be8750
fix(websocket): `global` & `Buffer`
Kinplemelon Sep 5, 2024
2e35788
fix(monaco): fix some errors in console
Kinplemelon Sep 6, 2024
7e593a2
chore(package): use pnpm to build
Kinplemelon Sep 6, 2024
c50931e
chore(package): use correct polyfill dep
Kinplemelon Sep 6, 2024
fa92f54
fix(style): solving some sass errors
Kinplemelon Sep 6, 2024
d11ad11
chore(package): git commit hook
Kinplemelon Sep 9, 2024
dfe8165
chore(package): upgrade eslint
Kinplemelon Sep 10, 2024
46e6df5
chore(hooks): hooks for pre commit
Kinplemelon Sep 10, 2024
6262262
chore(global): some env variables
Kinplemelon Sep 11, 2024
fdad682
doc(readme): update readme
Kinplemelon Sep 11, 2024
c93e998
test(script): update orval script
Kinplemelon Sep 11, 2024
7917632
chore(ci): update shell in ci
Kinplemelon Sep 11, 2024
327df0e
refactor(scripts): use esm
Kinplemelon Sep 11, 2024
bf3e7b0
chore(config): add schema folder to eslint and prettier ignore path
Kinplemelon Sep 11, 2024
6023295
refactor(index): position of favicon icon
Kinplemelon Sep 12, 2024
5fb1ca9
refactor(.d.ts): add reference
Kinplemelon Sep 12, 2024
6d6bfc2
chore(package): replace moment with dayjs
Kinplemelon Sep 12, 2024
e473f09
fix(global): fix some type issue
Kinplemelon Sep 12, 2024
156b813
chore(ci): upgrade action
Kinplemelon Sep 12, 2024
3267103
chore(pnpm): upgrade pnpm to 9.x
Kinplemelon Sep 12, 2024
e793fdf
test(ci): optimize the ci for check schema
Kinplemelon Sep 12, 2024
259fa4d
test(schemas): remove ignore item from prettier and eslint config
Kinplemelon Sep 19, 2024
9841b7d
fix(rule): path for get source icon
Kinplemelon Sep 19, 2024
1b2981a
chore(package): upgrade element-plus
Kinplemelon Sep 20, 2024
ba53d4d
fix(rule): some style issue
Kinplemelon Sep 20, 2024
d57d080
refactor(global): update label prop of `el-radio` to value prop
Kinplemelon Sep 20, 2024
5c67b0d
refactor(http): convert to ts
Kinplemelon Sep 23, 2024
b575009
style(message): style issue
Kinplemelon Sep 23, 2024
7039dd8
refactor(banned): replace moment with dayjs
Kinplemelon Sep 26, 2024
50cbe44
refactor(global): remove some unnecessary imports like `defineProps`
Kinplemelon Sep 26, 2024
8d9e14f
chore(package): upgrade @emqx/shared-ui-utils
Kinplemelon Oct 10, 2024
a825e5e
refactor(global): remove some useless component
Kinplemelon Oct 11, 2024
2fd31d9
refactor(gateway): convert script of `topicEditList` component from J…
Kinplemelon Oct 11, 2024
eb4bb4c
refactor(gateway): convert script of `stompBasic` component from JS t…
Kinplemelon Oct 11, 2024
88ac8ab
refactor(gateway): convert script of `coapBasic` component from JS to TS
Kinplemelon Oct 11, 2024
346d9da
refactor(gateway): convert script of `basic` component from JS to TS
Kinplemelon Oct 11, 2024
9b22cad
refactor(gateway): convert script of `GatewayCreate` page from JS to TS
Kinplemelon Oct 11, 2024
01dff2f
refactor(gateway): title on the create gateway page
Kinplemelon Oct 11, 2024
9ab5643
refactor(gateway): convert script of `exprotoBasic` component from JS…
Kinplemelon Oct 11, 2024
9791d92
refactor(gateway): convert script of `auth` component from JS to TS
Kinplemelon Oct 11, 2024
df3b117
refactor(gateway): declares some specific types
Kinplemelon Oct 12, 2024
181c9f1
refactor(component): convert script of `CodeView` component from JS t…
Kinplemelon Oct 12, 2024
d4b92e3
refactor(authn): convert script of `AuthnDetails` component from JS t…
Kinplemelon Oct 15, 2024
f4e9b8d
refactor(authz): convert script of `AuthzCreate` page from JS to TS
Kinplemelon Oct 15, 2024
6dea7f2
refactor(authz): convert script of `AuthzDetail` page from JS to TS
Kinplemelon Oct 15, 2024
be07f0e
refactor(websocket): convert script of `WebsocketItem` component from…
Kinplemelon Oct 15, 2024
6de1bf8
refactor(components): refactor(authz): convert script of `Monaco` pag…
Kinplemelon Oct 15, 2024
279b9fd
refactor(i18n): convert file format from JS to TS
Kinplemelon Oct 16, 2024
5a967a1
refactor(code view): convert custom language file from JS to TS
Kinplemelon Oct 17, 2024
99198ff
fix(rule): highlighting of rule sql
Kinplemelon Nov 5, 2024
bad7e9f
style(global): adapt element-plus changed
Kinplemelon Nov 8, 2024
5c20f29
style(element): adapt element plus changed
Kinplemelon Nov 11, 2024
2b87265
refactor(i18n): remove zone level
Kinplemelon Nov 12, 2024
7d79595
refactor(i18n): remove some meaningless prefix
Kinplemelon Nov 12, 2024
71beae4
refactor(i18n): remove some useless i18n
Kinplemelon Nov 12, 2024
7fdf0c0
refactor(i18n): remove useless i18n in sysmon and remove key prefix
Kinplemelon Nov 12, 2024
9f9c079
refactor(i18n): changed the logic for getting the text key
Kinplemelon Nov 12, 2024
c982a28
refactor(i18n): unify functions to get text key for each type; remove…
Kinplemelon Nov 12, 2024
2a89897
refactor(i18n): remove useless i18n (WIP)
Kinplemelon Nov 13, 2024
00265ab
refactor(i18n): remove useless i18n text
Kinplemelon Nov 13, 2024
729c8a9
fix(listener): repeated configs in custom configs
Kinplemelon Nov 18, 2024
e343abe
refactor(i18n): convert json file to ts file
Kinplemelon Nov 18, 2024
42f66c0
fix(gateway): desc for `connection_required` in CoAP
Kinplemelon Nov 21, 2024
352141e
test(schemas): update schemas
Kinplemelon Nov 21, 2024
47de3e2
fix(mqtt): adapt new field `clientid_override`
Kinplemelon Nov 21, 2024
eca7455
fix(gateway): label for client `connectedAt`
Kinplemelon Dec 1, 2024
722d57b
refactor(monitoring integration): remove files which should be remove…
Kinplemelon Dec 2, 2024
c97ac69
test(schemas): update schemas
Kinplemelon Dec 2, 2024
46b8bab
fix(mqtt): desc for `clientid_override`
Kinplemelon Dec 2, 2024
c692359
fix(mqtt & listener): update desc from emqx
Kinplemelon Dec 2, 2024
db002b8
ci: use GitHub App to create PRs in emqx/emqx
id Dec 3, 2024
8e714ad
fix(listener): desc for mountpoint
Kinplemelon Dec 3, 2024
3ca8954
fix(component): not allow input negative number for InputWithUnit
Kinplemelon Dec 5, 2024
384e675
fix(rule): repeated error message
Kinplemelon Dec 5, 2024
95a9016
fix(rule): support jump to action detail page
Kinplemelon Dec 6, 2024
0ed22de
fix(listener & connector): optimize view password
Kinplemelon Dec 9, 2024
ed947f4
refactor(package): upgrade shared-i18n
Kinplemelon Dec 9, 2024
9f328a2
refactor(schema form): optimize the input interaction for enum types …
Kinplemelon Dec 10, 2024
85e0338
Merge branch 'dev/1.10.4' into dev/1.11.0
Kinplemelon Dec 11, 2024
90ce56f
fix(action): style of detail tooltip
Kinplemelon Dec 10, 2024
9f8be67
feat(overview): support reset monitor data
Kinplemelon Dec 11, 2024
f318328
refactor(i18n): remove some repeated i18n
Kinplemelon Nov 19, 2024
854efbd
refactor(login): need change password if password is expired
Kinplemelon Dec 12, 2024
c1559ec
fix(listener): update desc for `mountpoint`
Kinplemelon Dec 12, 2024
5eabbd1
fix(actions): fix tilte name too long issue
ysfscream Dec 16, 2024
29f14e9
refactor(schema): handle boolean type field with is_template
Kinplemelon Dec 16, 2024
7ccc0b0
fix(connector): support custom password input on form item component
ysfscream Dec 16, 2024
8750521
fix(rule): adapt map_size and is_empty funcs in rule
ysfscream Dec 16, 2024
a77eafa
fix(action): default value of boolean enums
Kinplemelon Dec 18, 2024
0e8609e
fix(rule): adapt str_utf16_le and sqlserver_bin2hexstr funcs in rule
ysfscream Dec 18, 2024
263cb81
fix(schema): optimize input with placeholder select
Kinplemelon Dec 19, 2024
d33dfcc
chore(deps): bump version
ysfscream Dec 20, 2024
0f243a0
fix(schema): do not show boolean options if there are other type
Kinplemelon Dec 23, 2024
c36c016
fix(monitoring): update large heap desc
ysfscream Dec 23, 2024
17c1ab1
feat(sources): support no local to mqtt source config
ysfscream Dec 24, 2024
e26704d
fix(connector): support static client ids for mqtt connector
ysfscream Dec 25, 2024
6d6e863
refactor(global): exact CreateButton component
Kinplemelon Dec 25, 2024
bd1ca3c
refactor(global): extract TableButton component
Kinplemelon Dec 25, 2024
b96e192
refactor(rule): unify reset icon
Kinplemelon Dec 25, 2024
fda4549
refactor(global): extract RefreshButton component
Kinplemelon Dec 25, 2024
08faa56
refactor(global): add SearchButton component and replace search butto…
Kinplemelon Dec 25, 2024
b8c4dea
refactor(global): extract ResetButton component
Kinplemelon Dec 25, 2024
9df39f7
refactor(exhook): text for create button
Kinplemelon Dec 25, 2024
2708e85
Merge branch 'dev/1.10.5' into dev/1.11.0
Kinplemelon Dec 26, 2024
f1acf9d
Merge branch 'dev/1.10.5' into dev/1.11.0
Kinplemelon Dec 26, 2024
e98777e
fix(buttons): wrong text
Kinplemelon Dec 26, 2024
e647e91
refactor(buttons): add ShowMoreButton component
Kinplemelon Dec 26, 2024
a16509b
refactor(rule): order of buttons at the bottom of detail page
Kinplemelon Dec 26, 2024
28d456e
style(tables): unify components of some tables
Kinplemelon Dec 27, 2024
a77036f
refactor(buttons): centre-aligned
Kinplemelon Dec 27, 2024
83e1da8
feat(config): expose force shutdown config
ysfscream Jan 2, 2025
db0d5bd
Merge branch 'dev/1.10.5' into dev/1.11.0
Kinplemelon Jan 6, 2025
d0c7615
refactor(data integration): remove useless code
Kinplemelon Jan 7, 2025
7230b70
fix(buttons): style issue
Kinplemelon Jan 9, 2025
3806c97
style(layout): set left for header
Kinplemelon Jan 9, 2025
b24718d
fix(auth): use CustomInputPassword component
Kinplemelon Jan 13, 2025
d9c2f71
fix(gateway): remove max_connections in list page
Kinplemelon Jan 13, 2025
eb5a987
fix(authn): validate filter in mongodb config
Kinplemelon Jan 13, 2025
9d16da1
refactor(login): optimize autocomplete
Kinplemelon Jan 14, 2025
ddeb1d6
fix(schema): validate form after adding item
Kinplemelon Jan 14, 2025
f957398
refactor(overview): retained and shared
Kinplemelon Jan 16, 2025
d25a6c7
refactor(overview): layout of overview
Kinplemelon Jan 17, 2025
a76e85d
style(overview): update icons
Kinplemelon Jan 20, 2025
ff26688
test(schemas): update schemas
Kinplemelon Jan 20, 2025
0dbd4f5
refactor(action & source): use summary api
Kinplemelon Jan 17, 2025
2737af9
refactor(action & source): extract action and source list
Kinplemelon Jan 17, 2025
771bed4
refactor(action & source): optimize list
Kinplemelon Jan 17, 2025
728a24b
refactor(action): sortable for some columns
Kinplemelon Jan 20, 2025
2f0961e
refactor(action): support filter
Kinplemelon Jan 21, 2025
03eb17e
refactor(paging): correct logic for filter
Kinplemelon Jan 21, 2025
877b12c
refactor(action): finish some detail
Kinplemelon Jan 22, 2025
75dfab3
fix(webhook): toggle connector enable state when toggling webhook ena…
Kinplemelon Jan 21, 2025
9eeebaa
refactor(retainer): adapt `max_publish_rate`
Kinplemelon Jan 23, 2025
a15375c
test(schemas): update schemas
Kinplemelon Jan 23, 2025
6fa9b0b
feat(action): add `created_at` column
Kinplemelon Jan 23, 2025
fcaacf2
refactor(authz): adapt `limit` and `skip` in mongo
Kinplemelon Jan 23, 2025
bcb0a8e
Merge branch 'dev/1.10.5' into dev/1.11.0
Kinplemelon Feb 6, 2025
8e2c549
refactor(i18n): update component translations to plural forms
ysfscream Feb 6, 2025
665db5d
chore(ci): upgrade actions/upload-artifact to v4
ysfscream Feb 6, 2025
fe56df3
chore(ci): upgrade actions/download-artifact to v4
ysfscream Feb 6, 2025
89ddebe
refactor(authz): update help for mongo filter
Kinplemelon Feb 6, 2025
bf67393
refactor(api key): add `api_key` column
Kinplemelon Feb 6, 2025
f76df39
refactor(rule): adapt new rule events
Kinplemelon Feb 6, 2025
6b34896
test(schema): update schemas
Kinplemelon Feb 6, 2025
08228d0
refactor(i18n): update component translations to improve clarity
ysfscream Feb 7, 2025
8ad0d80
fix(listener): add exit confirmation
Kinplemelon Feb 11, 2025
49672a0
refactor(rule): adapt fields in new events
Kinplemelon Feb 11, 2025
f75e116
fix(connector): do not remove `role` when submitting
Kinplemelon Feb 11, 2025
6b6b3d5
fix(rule): adapt `details` field when test alarm event
Kinplemelon Feb 11, 2025
3f7273e
doc(readme): update overview
Kinplemelon Feb 11, 2025
c70926c
Merge branch 'dev/1.10.5' into dev/1.11.0
Kinplemelon Feb 12, 2025
c43e433
style(action): button style issue
Kinplemelon Feb 12, 2025
9da17c1
refactor(listener): optimize custom configs
Kinplemelon Feb 12, 2025
3edfc52
refactor(form): require asterisk position
Kinplemelon Feb 12, 2025
07911be
refactor(auth): add text for button
Kinplemelon Feb 12, 2025
36311b2
fix(action): logic to detect if it is a webhook action
Kinplemelon Feb 13, 2025
5b28540
chore(package): upgrade i18n
Kinplemelon Feb 13, 2025
fe897bf
fix(action): incorrect filter status
Kinplemelon Feb 13, 2025
457c1b0
fix(authz): complete desc for $orderby
Kinplemelon Feb 14, 2025
f374998
fix(action): long rule id
Kinplemelon Feb 14, 2025
b7f8a2d
fix(action): issue of overflow tooltip
Kinplemelon Feb 17, 2025
389a555
fix(log): plural form of title
Kinplemelon Feb 17, 2025
e40a09d
feat(component): link button
Kinplemelon Feb 18, 2025
01c0ef0
Merge branch 'dev/1.10.5' into dev/1.11.0
Kinplemelon Feb 18, 2025
b177636
fix(source): can not delete source
Kinplemelon Feb 18, 2025
d63a335
refactor(retainer): remove retainer.enable
Kinplemelon Feb 19, 2025
139d0a1
fix(rule): adapt event changed
Kinplemelon Feb 19, 2025
2f7e824
test(schemas): update schemas
Kinplemelon Feb 19, 2025
7084586
chore(package): upgrade emqx deps
Kinplemelon Feb 12, 2025
fc34aaf
chore(package): upgrade element-plus
Kinplemelon Feb 13, 2025
f94a8fe
refactor(component): replace select with input tag in array editor
Kinplemelon Feb 13, 2025
320e74e
style(global): eliminate compilation warnings about sass
Kinplemelon Feb 13, 2025
bb004e4
refactor(array editor): placeholder
Kinplemelon Feb 13, 2025
71be0ff
fix(mqtt): rules for `client_attrs_init`
Kinplemelon Feb 19, 2025
7affc3e
fix(websocket): check topic before pub and sub
Kinplemelon Feb 20, 2025
892446f
fix(msg trans): message after deleting
Kinplemelon Feb 20, 2025
a0f2e0d
fix(rule): reg to match event type
Kinplemelon Feb 21, 2025
d4c3d14
fix(action): correct status label
Kinplemelon Feb 21, 2025
b1198d1
fix(rule): test alarm event
Kinplemelon Feb 21, 2025
a95bafa
chore(package): initial import of auto import dependencies
Kinplemelon Feb 20, 2025
9bf4785
refactor(global): remove imports
Kinplemelon Feb 20, 2025
ecc6ac1
refactor(global): handle vue-router with auto-import
Kinplemelon Feb 21, 2025
6dbbdeb
refactor(global): import vuex with auto-import
Kinplemelon Feb 21, 2025
56d6c90
refactor(global): import vue-i18n with auto-import
Kinplemelon Feb 21, 2025
e1f50f0
refactor(global): import element-plus with auto-import
Kinplemelon Feb 21, 2025
a7f18f6
refactor(global): import hooks with auto-import
Kinplemelon Feb 21, 2025
b73afac
chore(package): import unplugin-vue-components
Kinplemelon Feb 24, 2025
ed75d76
fix(overview): adapt new prop in el-menu
Kinplemelon Feb 24, 2025
6fa53af
refactor(global): handle `components` prop
Kinplemelon Feb 24, 2025
76aaaf8
refactor(global): auto import components
Kinplemelon Feb 24, 2025
05e8a0e
refactor(global): auto import constants
Kinplemelon Feb 24, 2025
c83042e
refactor(global): auto import tools
Kinplemelon Feb 24, 2025
c8c469a
refactor(auto import): remove some useless files
Kinplemelon Feb 24, 2025
a3640ef
refactor(auto import): rename some files and variables to resolve dup…
Kinplemelon Feb 25, 2025
3659270
refactor(auto import): add related files to prettier ignore
Kinplemelon Feb 25, 2025
909d897
refactor(constant): reposition `EMQX_VERSION`
Kinplemelon Feb 25, 2025
89f8f3b
refactor(flow): remove useless file
Kinplemelon Feb 25, 2025
2f9707b
refactor(auto): rename type for resolve conflict
Kinplemelon Feb 25, 2025
921ab3a
fix(auto import): fix some error
Kinplemelon Feb 25, 2025
f6d073f
Merge branch 'master' into dev/1.11.0
Kinplemelon Feb 26, 2025
e414942
chore(package): explicitly import dep in package.json
Kinplemelon Feb 26, 2025
249e169
refactor(rule): exposes `last_modified_at` and add no
Kinplemelon Feb 26, 2025
b728a1d
refactor(global): do not use default export from lodash
Kinplemelon Feb 26, 2025
f7b54fe
refactor(plugin): sync plugin version
Kinplemelon Feb 27, 2025
3f6f47f
refactor(plugin): add restart tip
Kinplemelon Feb 27, 2025
686eaa5
refactor(plugin): body of sync api
Kinplemelon Feb 28, 2025
b6b802c
fix(webhook): unexpected error message
Kinplemelon Feb 28, 2025
0eafe12
ci(scripts): try to sort the schemas
Kinplemelon Feb 28, 2025
a58f4aa
fix(auth): some auto import issue
Kinplemelon Mar 3, 2025
4981926
doc(package): update version
Kinplemelon Mar 3, 2025
d35e608
refactor(component): optimize prop type
Kinplemelon Mar 3, 2025
572287b
fix(plugin): component name
Kinplemelon Mar 3, 2025
ceecb4f
chore(ci): test when ref is prepare
Kinplemelon Mar 3, 2025
ba7ab13
chore(ci): refix ci
Kinplemelon Mar 3, 2025
c010955
chore(ci): correct match equation
Kinplemelon Mar 3, 2025
3591134
chore(ci): use `ref` to detect version
Kinplemelon Mar 3, 2025
a092651
chore(ci): use `ref_name` to detect version
Kinplemelon Mar 3, 2025
1a48caf
chore(ci): correct wildcard
Kinplemelon Mar 3, 2025
62cc8c6
chore(ci): install pnpm
Kinplemelon Mar 3, 2025
37fd0ce
chore(ci): install pnpm
Kinplemelon Mar 3, 2025
b3c6673
chore(ci): upgrade node version
Kinplemelon Mar 3, 2025
32b7d7a
refactor(mqtt): adapt limiter configs
Kinplemelon Mar 3, 2025
f67df9d
fix(action): style issue
Kinplemelon Mar 4, 2025
e1e050c
refactor(listener): adapt new limiter configs
Kinplemelon Mar 4, 2025
3122c06
test(script): fix script
Kinplemelon Mar 4, 2025
cabb9dd
refactor(connector): adapt `max_inactive` in connector, action and auth
Kinplemelon Mar 5, 2025
d616532
refactor(authz): extract rules table
Kinplemelon Mar 5, 2025
e554eb8
refactor(authz): extract options
Kinplemelon Mar 5, 2025
3ac4581
refactor(authz): consider data when submitting or editing
Kinplemelon Mar 5, 2025
3cd1e5f
refactor(authz): layout of form
Kinplemelon Mar 5, 2025
9aa1420
style(authz): rules
Kinplemelon Mar 5, 2025
5317556
refactor(authz): add rule for topic
Kinplemelon Mar 6, 2025
4981a95
refactor(listener): adapt `parse_unit` in custom configs
Kinplemelon Mar 6, 2025
2157c3e
Merge branch 'dev/1.10.6' into dev/1.11.0
Kinplemelon Mar 6, 2025
01f9712
refactor(authz): handle spaces in topic
Kinplemelon Mar 6, 2025
ef2b174
chore(package): upgrade i18n
Kinplemelon Mar 6, 2025
3928040
refactor(auth): init cache related
Kinplemelon Mar 10, 2025
0093ac7
refactor(auth): some details of node cache
Kinplemelon Mar 11, 2025
c2dc1a7
refactor(auth): adjust some text
Kinplemelon Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@ module.exports = {
root: true,
env: {
node: true,
es2022: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
'@vue/prettier',
'@vue/prettier/@typescript-eslint',
'@vue/eslint-config-typescript',
],
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 2022,
},
ignorePatterns: ['dist', 'node_modules', '/src/assets/fonts', '/src/assets/iconfont'],
rules: {
// FIXME:FIXME:FIXME: can not get node env now
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': [1],
'@typescript-eslint/no-explicit-any': 'off',
'vue/multi-word-component-names': 'off',
},
overrides: [
{
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build_emqx_for_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:
OTP_VSN: '26.2.5-3'
ELIXIR_VSN: '1.15.7'


steps:
- name: checkout emqx code
uses: actions/checkout@v3
with:
repository: emqx/emqx
ref: release-58
ref: release-59

- name: build and export to Docker
id: build
Expand All @@ -31,7 +30,7 @@ jobs:
- name: export docker image
run: |
docker save $_EMQX_DOCKER_IMAGE_TAG | gzip > $EMQX_NAME-docker.tar.gz
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: '${{ env.EMQX_NAME }}-docker'
path: '${{ env.EMQX_NAME }}-docker.tar.gz'
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/build_enterprise_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,28 @@ name: build enterprise package
on:
pull_request:
branches:
- 'enterprise'
- '**enterprise**'
- 'dev/e/*'
push:
branches:
- 'enterprise'
- '**enterprise**'
- 'dev/e/*'
workflow_call:

jobs:
build:
runs-on: ubuntu-20.04
container: node:16.20
container: node:20.17
steps:
- uses: actions/checkout@v2
- name: Install pnpm
run: npm install -g pnpm
- name: install zip
run: apt-get update && apt-get install -y zip
- name: build
run: |
yarn
yarn build:enterprise
pnpm install
pnpm build:enterprise
- name: create package
run: |
touch dist/version
Expand All @@ -31,7 +33,7 @@ jobs:
PACKAGE_NAME=$(echo ${GITHUB_REF##*/}) # Extract tag from GITHUB_REF
zip -rq emqx-enterprise-dashboard-$PACKAGE_NAME.zip ./dist
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: emqx-enterprise-dashboard
path: dist/
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build_oss_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ on:
jobs:
build:
runs-on: ubuntu-20.04
container: node:16.20
container: node:20.17
steps:
- uses: actions/checkout@v2
- name: Install pnpm
run: npm install -g pnpm
- name: install zip
run: apt-get update && apt-get install -y zip
- name: build
run: |
yarn
yarn build
pnpm install
pnpm build
- name: create package
run: |
touch dist/version
Expand All @@ -31,7 +33,7 @@ jobs:
PACKAGE_NAME=$(echo ${GITHUB_REF##*/}) # Extract tag from GITHUB_REF
zip -rq emqx-dashboard-$PACKAGE_NAME.zip ./dist
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: emqx-dashboard
path: dist/
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/check_newest_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
type: string

env:
IS_CI: "true"
IS_CI: 'true'
EMQX_NAME: ${{ inputs.emqx-name }}

jobs:
check_schema:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.EMQX_NAME }}-docker
path: /tmp
Expand All @@ -34,17 +34,23 @@ jobs:

- name: checkout dashboard code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.17'

- name: run script that checks schemas
run: |
yarn
yarn orval
npm install -g pnpm
pnpm install
pnpm orval

- name: check for changes
run: |
git_diff=$(git diff)
if [ -n "$git_diff" ]; then
git diff
git diff src/types/schemas
echo "Detected differences in the repository. Uploading mismatched schemas."
exit 1
else
Expand All @@ -53,7 +59,7 @@ jobs:

- name: upload schemas
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: newest-schemas
path: ./src/types/schemas/*.ts
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/check_package_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
type: string

env:
IS_CI: "true"
IS_CI: 'true'
EMQX_NAME: ${{ inputs.emqx-name }}

jobs:
check_package_version:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ env.EMQX_NAME }}-docker
path: /tmp
Expand All @@ -35,13 +35,16 @@ jobs:
- name: checkout dashboard code
uses: actions/checkout@v3

- name: Install pnpm
run: npm install -g pnpm

- name: install dep
run: |
yarn
pnpm install

- name: run script that checks the version of the package
run: |
node ./scripts/checkPackageVersion.js
node ./scripts/checkPackageVersion.cjs

- name: check for script errors
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- 'dev/*'
- 'enterprise'
- '**enterprise**'

jobs:
set_version:
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: check branch and set output
id: set-output
run: |
if [[ "${{ github.base_ref }}" == enterprise ]]; then
if [[ "${{ github.ref_name }}" == e* ]]; then
echo "emqx-name=emqx-enterprise" >> "$GITHUB_OUTPUT"
else
echo "emqx-name=emqx" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -56,9 +56,17 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.AUTH_APP_ID }}
private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Create PR in emqx/emqx
env:
GH_TOKEN: ${{ secrets.CI_GITHUB_TOKEN_EMQX_RW }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
EMQX_NAME: emqx
VERSION: ${{ github.ref_name }}
run: |
Expand All @@ -74,9 +82,17 @@ jobs:
if: (github.ref == 'refs/heads/enterprise') || startsWith(github.ref, 'refs/tags/e')
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.AUTH_APP_ID }}
private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Create PR in emqx/emqx
env:
GH_TOKEN: ${{ secrets.CI_GITHUB_TOKEN_EMQX_RW }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
EMQX_NAME: emqx-enterprise
VERSION: ${{ github.ref_name }}
run: |
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
20
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Ignore files:
/src/assets/fonts
/src/assets/iconfont
/src/auto-imports.d.ts
/src/components.d.ts
/src/types/schemas/*
# Ignore all HTML files:
*.html
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,31 @@ To set up for local development, follow these steps:
2. Install the dependencies:

```shell
yarn
pnpm install
```

3. To start the development server, run:

```shell
yarn serve
pnpm dev
```

4. For production compilation and minification:

```shell
yarn build
pnpm build
```

5. Lint and fix files:

```shell
yarn lint
pnpm lint
```

Or, format the code with Prettier:

```shell
yarn format
pnpm format
```

## ☁️ Development with Cloud Host
Expand All @@ -125,11 +125,11 @@ To set up for development with a cloud host:
3. Start the development server:

```shell
yarn serve
pnpm serve
```

## ⚙️ Vue.js Customize Configuration

Refer to the [Configuration Reference](https://cli.vuejs.org/config/) for more information.
Refer to the [Configuring Vite](https://vitejs.dev/config/#configuring-vite) for more information.

After the completion of setup, the CI will run automatically and deploy upon successful execution.
Binary file modified assets/overview-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading