-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add user custom init script feature #8
base: master
Are you sure you want to change the base?
Conversation
const {projects} = require('/root/workspace/metadata.json'); | ||
const { | ||
projects, | ||
customizeInitScript, |
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.
customInitScript
|
||
if (customizeInitScript) { | ||
let scriptPath = `/root/workspace/customize-init-script.sh`; |
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.
custom-init-script.sh
src/client/@utils/localStorage.ts
Outdated
/** | ||
* Save customize init script, set to empty or null to delete | ||
*/ | ||
export function saveCustomizeInitScript(content: string): void { |
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.
custom
src/client/@views/home-view.tsx
Outdated
this.toShowCustomizeModal = false; | ||
}; | ||
|
||
@action |
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.
在里面 runInAction
, 或者要不不加,好像这个项目里其他地方没加
6656aef
to
09d53e5
Compare
09d53e5
to
7e2cf89
Compare
No description provided.