给devcontainer增加变量和脚本功能 - 能从devstar.cn上获取预定义的DEVSTAR_开头的变量或脚本 - 添加到脚本管理中的变量名,在devcontainer启动时会自动执行,然后才执行devcontainer.json中用户自定义脚本,其中可以调用设置的变量或脚本 - 变量或脚本在用户设置、项目设置和后台管理中都可以添加,如有重名优先级为:用户设置 > 项目设置 > 后台管理
78 lines
3.5 KiB
Handlebars
78 lines
3.5 KiB
Handlebars
<div class="flex-container-nav">
|
|
<div class="ui fluid vertical menu">
|
|
<div class="header item">{{ctx.Locale.Tr "user.settings"}}</div>
|
|
<a class="{{if .PageIsSettingsProfile}}active {{end}}item" href="{{AppSubUrl}}/user/settings">
|
|
{{ctx.Locale.Tr "settings.profile"}}
|
|
</a>
|
|
{{if not ($.UserDisabledFeatures.Contains "manage_credentials" "deletion")}}
|
|
<a class="{{if .PageIsSettingsAccount}}active {{end}}item" href="{{AppSubUrl}}/user/settings/account">
|
|
{{ctx.Locale.Tr "settings.account"}}
|
|
</a>
|
|
{{end}}
|
|
{{if $.EnableNotifyMail}}
|
|
<a class="{{if .PageIsSettingsNotifications}}active {{end}}item" href="{{AppSubUrl}}/user/settings/notifications">
|
|
{{ctx.Locale.Tr "notifications"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsAppearance}}active {{end}}item" href="{{AppSubUrl}}/user/settings/appearance">
|
|
{{ctx.Locale.Tr "settings.appearance"}}
|
|
</a>
|
|
{{if not ($.UserDisabledFeatures.Contains "manage_mfa" "manage_credentials")}}
|
|
<a class="{{if .PageIsSettingsSecurity}}active {{end}}item" href="{{AppSubUrl}}/user/settings/security">
|
|
{{ctx.Locale.Tr "settings.security"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsBlockedUsers}}active {{end}}item" href="{{AppSubUrl}}/user/settings/blocked_users">
|
|
{{ctx.Locale.Tr "user.block.list"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsApplications}}active {{end}}item" href="{{AppSubUrl}}/user/settings/applications">
|
|
{{ctx.Locale.Tr "settings.applications"}}
|
|
</a>
|
|
{{if not ($.UserDisabledFeatures.Contains "manage_ssh_keys" "manage_gpg_keys")}}
|
|
<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{AppSubUrl}}/user/settings/keys">
|
|
{{ctx.Locale.Tr "settings.ssh_gpg_keys"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .EnableActions}}
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "actions.actions"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/user/settings/actions/runners">
|
|
{{ctx.Locale.Tr "actions.runners"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsSecrets}}active {{end}}item" href="{{AppSubUrl}}/user/settings/actions/secrets">
|
|
{{ctx.Locale.Tr "secrets.secrets"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{AppSubUrl}}/user/settings/actions/variables">
|
|
{{ctx.Locale.Tr "actions.variables"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{end}}
|
|
{{if .EnablePackages}}
|
|
<a class="{{if .PageIsSettingsPackages}}active {{end}}item" href="{{AppSubUrl}}/user/settings/packages">
|
|
{{ctx.Locale.Tr "packages.title"}}
|
|
</a>
|
|
{{end}}
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{AppSubUrl}}/user/settings/hooks">
|
|
{{ctx.Locale.Tr "repo.settings.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsOrganization}}active {{end}}item" href="{{AppSubUrl}}/user/settings/organization">
|
|
{{ctx.Locale.Tr "settings.organization"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsRepos}}active {{end}}item" href="{{AppSubUrl}}/user/settings/repos">
|
|
{{ctx.Locale.Tr "settings.repos"}}
|
|
</a>
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsDevcontainerVariables}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "admin.devcontainer"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsSharedSettingsDevcontainerVariables}}active {{end}}item" href="{{AppSubUrl}}/user/settings/devcontainer/variables">
|
|
{{ctx.Locale.Tr "devcontainer.variables"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|