-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(appstore): Optimize Custom Application Logic #7603
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,12 +21,17 @@ func Init() { | |
| constant.LocalAppResourceDir = path.Join(constant.AppResourceDir, "local") | ||
| constant.LocalAppInstallDir = path.Join(constant.AppInstallDir, "local") | ||
| constant.RemoteAppResourceDir = path.Join(constant.AppResourceDir, "remote") | ||
| constant.CustomAppResourceDir = path.Join(constant.AppResourceDir, "custom") | ||
|
|
||
| constant.LogDir = path.Join(global.CONF.System.DataDir, "log") | ||
| constant.SSLLogDir = path.Join(constant.LogDir, "ssl") | ||
|
|
||
| dirs := []string{constant.DataDir, constant.ResourceDir, constant.AppResourceDir, constant.AppInstallDir, | ||
| global.CONF.System.Backup, constant.RuntimeDir, constant.LocalAppResourceDir, constant.RemoteAppResourceDir, constant.SSLLogDir} | ||
| dirs := []string{ | ||
| constant.DataDir, constant.ResourceDir, constant.AppResourceDir, constant.AppInstallDir, | ||
| global.CONF.System.Backup, constant.RuntimeDir, constant.LocalAppResourceDir, | ||
| constant.RemoteAppResourceDir, constant.SSLLogDir, | ||
| constant.CustomAppResourceDir, | ||
| } | ||
|
|
||
| fileOp := files.NewFileOp() | ||
| for _, dir := range dirs { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no obvious errors or improvements in this Go code. |
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,18 +37,18 @@ const config = reactive({ | |
| taskOperate: '', | ||
| resourceID: 0, | ||
| taskType: '', | ||
| tail: false, | ||
| tail: true, | ||
| }); | ||
| const open = ref(false); | ||
| const showTail = ref(true); | ||
|
|
||
| const openWithTaskID = (id: string, tail: boolean) => { | ||
| console.log('openWithTaskID', id, tail); | ||
| config.taskID = id; | ||
| if (!tail) { | ||
| config.tail = false; | ||
| } else { | ||
| if (tail === undefined) { | ||
| config.tail = true; | ||
| } else { | ||
| config.tail = tail; | ||
| } | ||
| open.value = true; | ||
| }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please review the above code for any irregularity/suggested modifications. The current context is limited to before September 1st, 2021. Additionally, please note that I am not able to execute JavaScript or check its functionality directly within this platform. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no significant differences between the two versions of the code. The implementation remains consistent and does not require any changes to achieve the desired functionality.