39 lines
2.0 KiB
HTML
39 lines
2.0 KiB
HTML
<script th:inline="javascript" type="text/javascript">
|
|
var Theme = {
|
|
username: "[(${#authentication.name})]",
|
|
ajaxurl: "/",
|
|
site_title: [[${site.title}]],
|
|
bgm_open: [[${theme.config.music.bgm_open}]],
|
|
pjax: [[${theme.config.base_set.site_pjax}]],
|
|
site_logo : [[${ not #strings.isEmpty(theme.config.base_top_set.site_logo) ? theme.config.base_top_set.site_logo : '/themes/theme-pix/assets/img/logo.webp' }]],
|
|
admin_des: "[(${theme.config.base_set.admin_des})]",
|
|
site_page: "[(${theme.config.base_set.site_page})]",
|
|
theme_set: "[(${theme.config.style.theme_set})]",
|
|
play: {
|
|
play_id: [[${theme.config.music.play_id}]],
|
|
mu_type: [[${theme.config.music.mu_type}]],
|
|
mu_source: [[${theme.config.music.mu_source}]],
|
|
pix_mu_api: "[(${theme.config.music.pix_mu_api})]",
|
|
lrc_open: [[${theme.config.music.lrc_open}]],
|
|
m_loop: [[${theme.config.music.m_loop}]]
|
|
},
|
|
widget_yiyan:{
|
|
api: [[${theme.config.sidebar.pix_widget_yiyan.api}]]
|
|
},
|
|
moments:{
|
|
push_api: [[${roleName == 'super-role' ? 'console.api.moment.halo.run' : 'uc.api.moment.halo.run'}]],
|
|
api: [[${roleName == 'super-role' ? 'moment.halo.run' : 'uc.api.moment.halo.run'}]],
|
|
attachments_api: [[${roleName == 'super-role' ? 'api.console.halo.run' : 'uc.api.storage.halo.run'}]],
|
|
attachments_upload_api: [[${roleName == 'super-role' ? '/apis/api.console.halo.run/v1alpha1/attachments/upload' : '/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload'}]],
|
|
min_push_num: [[${theme.config.moments.min_push_num}]],
|
|
policy_name: [[${theme.config.moments.attachmentPolicy}]],
|
|
group_name: [[${theme.config.moments.attachmentGroup}]],
|
|
gaode_key: "[(${theme.config.moments.gaode_key})]"
|
|
},
|
|
toc: {
|
|
all_open: [[${theme.config.post.toc.all_open}]]
|
|
},
|
|
|
|
}
|
|
|
|
</script> |