Feat: change file permission

This commit is contained in:
unitwk 2022-08-11 14:06:42 +08:00
parent 3ae1b4d43a
commit 64bcfc8225
69 changed files with 4272 additions and 22 deletions

0
.eslintrc.js Normal file → Executable file
View File

0
.github/ISSUE_TEMPLATE/1---bug-report------------.md vendored Normal file → Executable file
View File

0
.github/ISSUE_TEMPLATE/2---feature-request------.md vendored Normal file → Executable file
View File

0
.github/ISSUE_TEMPLATE/3---pull-request---------.md vendored Normal file → Executable file
View File

0
.github/ISSUE_TEMPLATE/4---other--------.md vendored Normal file → Executable file
View File

0
.github/github.txt vendored Normal file → Executable file
View File

0
.github/workflows/codeql.yml vendored Normal file → Executable file
View File

0
.github/workflows/dependency-review.yml vendored Normal file → Executable file
View File

0
.github/workflows/node.js.yml vendored Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.prettierignore Normal file → Executable file
View File

0
.prettierrc.json Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
app.js Normal file → Executable file
View File

0
docs/logo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
docs/panel.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 419 KiB

After

Width:  |  Height:  |  Size: 419 KiB

4281
package-lock.json generated Normal file → Executable file

File diff suppressed because it is too large Load Diff

0
package.json Normal file → Executable file
View File

0
src/app.ts Normal file → Executable file
View File

0
src/app/common/global_variable.ts Normal file → Executable file
View File

0
src/app/common/instance_stream.ts Normal file → Executable file
View File

0
src/app/common/query_wrapper.ts Normal file → Executable file
View File

0
src/app/common/system_info.ts Normal file → Executable file
View File

0
src/app/common/system_storage.ts Normal file → Executable file
View File

0
src/app/const.ts Normal file → Executable file
View File

0
src/app/entity/entity_interface.ts Normal file → Executable file
View File

6
src/app/entity/remote_service.ts Normal file → Executable file
View File

@ -60,6 +60,12 @@ export default class RemoteService {
});
}
public async setLanguage(language: string) {
return await new RemoteRequest(this).request("info/setting", {
language
});
}
// This function is used to verify the identity. It only needs to be verified once.
// This function will be executed automatically after the connection event is triggered.
// Generally, there is no need to execute it manually.

0
src/app/entity/setting.ts Normal file → Executable file
View File

0
src/app/entity/structure.ts Normal file → Executable file
View File

0
src/app/entity/user.ts Normal file → Executable file
View File

0
src/app/i18n/index.ts Normal file → Executable file
View File

0
src/app/i18n/language/en_us.ts Normal file → Executable file
View File

0
src/app/i18n/language/zh_cn.ts Normal file → Executable file
View File

0
src/app/index.ts Normal file → Executable file
View File

0
src/app/middleware/permission.ts Normal file → Executable file
View File

0
src/app/middleware/protocol.ts Normal file → Executable file
View File

0
src/app/middleware/validator.ts Normal file → Executable file
View File

0
src/app/routers/private/business_user_router.ts Normal file → Executable file
View File

0
src/app/routers/private/environment_router.ts Normal file → Executable file
View File

0
src/app/routers/private/instance_router.ts Normal file → Executable file
View File

0
src/app/routers/private/overview_router.ts Normal file → Executable file
View File

0
src/app/routers/private/service_router.ts Normal file → Executable file
View File

0
src/app/routers/private/settings_router.ts Normal file → Executable file
View File

0
src/app/routers/private/top_user_router.ts Normal file → Executable file
View File

0
src/app/routers/protected/business_instance_router.ts Normal file → Executable file
View File

0
src/app/routers/protected/filemananger_router.ts Normal file → Executable file
View File

0
src/app/routers/protected/low_level_user_router.ts Normal file → Executable file
View File

0
src/app/routers/protected/schedule_router.ts Normal file → Executable file
View File

0
src/app/routers/protected/user_instance_router.ts Normal file → Executable file
View File

0
src/app/routers/public/login_router.ts Normal file → Executable file
View File

0
src/app/routers/public/socket_router.ts Normal file → Executable file
View File

0
src/app/service/base/uis.ts Normal file → Executable file
View File

0
src/app/service/base/urs.ts Normal file → Executable file
View File

0
src/app/service/instance_service.ts Normal file → Executable file
View File

0
src/app/service/log.ts Normal file → Executable file
View File

0
src/app/service/passport_service.ts Normal file → Executable file
View File

0
src/app/service/password.ts Normal file → Executable file
View File

0
src/app/service/permission_service.ts Normal file → Executable file
View File

0
src/app/service/remote_command.ts Normal file → Executable file
View File

0
src/app/service/socket_service.ts Normal file → Executable file
View File

7
src/app/service/system_remote_service.ts Normal file → Executable file
View File

@ -138,12 +138,7 @@ class RemoteServiceSubsystem extends UniversalRemoteSubsystem<RemoteService> {
changeDaemonLanguage(language: string) {
for (const iterator of this.services.entries()) {
new RemoteRequest(iterator[1])
.request("info/setting", {
language
})
.then(() => {})
.catch(() => {});
iterator[1].setLanguage(language);
}
}
}

0
src/app/service/system_user.ts Normal file → Executable file
View File

0
src/app/service/system_visual_data.ts Normal file → Executable file
View File

0
src/app/service/user_statistics.ts Normal file → Executable file
View File

0
src/app/setting.ts Normal file → Executable file
View File

0
src/app/version.ts Normal file → Executable file
View File

0
tsconfig.json Normal file → Executable file
View File

0
webpack.config.js Normal file → Executable file
View File