update
This commit is contained in:
parent
961356f37d
commit
349aa747fb
4 changed files with 26 additions and 7 deletions
|
@ -21,7 +21,7 @@ const AllTabs = await Astro.glob('../../../../content/tabs/*')
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class:list={['sidebar-tabs', 'sidebar-layout-' + sidebar.tabPositions]}>
|
<div class:list={['sidebar-tabs', 'sidebar-layout-' + sidebar.tabPositions]}>
|
||||||
{tabs.customOrder ?
|
{sidebar.customOrder ?
|
||||||
null
|
null
|
||||||
:
|
:
|
||||||
AllTabs.map((tab) =>
|
AllTabs.map((tab) =>
|
||||||
|
@ -34,6 +34,7 @@ const AllTabs = await Astro.glob('../../../../content/tabs/*')
|
||||||
</div>
|
</div>
|
||||||
</sidebar>
|
</sidebar>
|
||||||
|
|
||||||
|
<!-- Sidebar Tab Configuration, see "configuration.ts" -->
|
||||||
<style define:vars={{ tabFontSize, tabVerticalPadding }}>
|
<style define:vars={{ tabFontSize, tabVerticalPadding }}>
|
||||||
tab {
|
tab {
|
||||||
font-size: var(--tabFontSize);
|
font-size: var(--tabFontSize);
|
||||||
|
@ -42,6 +43,7 @@ const AllTabs = await Astro.glob('../../../../content/tabs/*')
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<!-- Function for Sidebar Toggle -->
|
||||||
<script is:raw>
|
<script is:raw>
|
||||||
function CompactTheSideBar() {
|
function CompactTheSideBar() {
|
||||||
document.querySelector('sidebar').setAttribute('class', 'sidebar-size-compact')
|
document.querySelector('sidebar').setAttribute('class', 'sidebar-size-compact')
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
///////////////////////
|
///////////////////////
|
||||||
// Metadata //
|
// Metadata //
|
||||||
///////////////////////
|
///////////////////////
|
||||||
|
// Doc: INSERT_DOC_LINK_HERE
|
||||||
export const info = {
|
export const info = {
|
||||||
// Basics
|
// Basics
|
||||||
name: 'App Name Here',
|
name: 'App Name Here',
|
||||||
|
@ -21,6 +22,7 @@ export const info = {
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
// App Configuration //
|
// App Configuration //
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
// Doc: INSERT_DOC_LINK_HERE
|
||||||
export const config = {
|
export const config = {
|
||||||
// Notifications
|
// Notifications
|
||||||
notificationType: "Native", // "Custom" "Native"
|
notificationType: "Native", // "Custom" "Native"
|
||||||
|
@ -42,21 +44,27 @@ export const window = {
|
||||||
//////////////////////
|
//////////////////////
|
||||||
// Sidebar //
|
// Sidebar //
|
||||||
//////////////////////
|
//////////////////////
|
||||||
export const tabs = {
|
// Doc: INSERT_DOC_LINK_HERE
|
||||||
customOrder: false,
|
// Use this if you want to use a custom order of tabs
|
||||||
}
|
export const tabs = {}
|
||||||
|
|
||||||
////////////////////
|
////////////////////
|
||||||
// Theme //
|
// Theme //
|
||||||
////////////////////
|
////////////////////
|
||||||
|
// Doc: INSERT_DOC_LINK_HERE
|
||||||
export const sidebar = {
|
export const sidebar = {
|
||||||
headerFontSize: "14px",
|
|
||||||
tabFontSize: "16px",
|
|
||||||
tabVerticalPadding: "12px",
|
|
||||||
tabPositions: "normal", // "normal" "centered"
|
tabPositions: "normal", // "normal" "centered"
|
||||||
size: "normal", // "normal" "compact"
|
size: "normal", // "normal" "compact"
|
||||||
|
|
||||||
|
// Sidebar Header
|
||||||
|
headerFontSize: "14px",
|
||||||
enableBells: false,
|
enableBells: false,
|
||||||
enableToggle: true,
|
enableToggle: true,
|
||||||
|
|
||||||
|
// Tabs
|
||||||
|
customOrder: false,
|
||||||
|
tabFontSize: "16px",
|
||||||
|
tabVerticalPadding: "12px",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const splash = {
|
export const splash = {
|
||||||
|
@ -67,6 +75,7 @@ export const splash = {
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
// Electron Builder //
|
// Electron Builder //
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
|
// Doc: INSERT_DOC_LINK_HERE
|
||||||
export const update = {
|
export const update = {
|
||||||
channel: "latest", // Branch: "latest" "beta" "alpha"
|
channel: "latest", // Branch: "latest" "beta" "alpha"
|
||||||
url: '' // Point to url where build files will be stored on your server.
|
url: '' // Point to url where build files will be stored on your server.
|
||||||
|
|
4
content/tabs/second-tab.astro
Normal file
4
content/tabs/second-tab.astro
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
export const name = 'Second Tab'
|
||||||
|
export const icon = '2'
|
||||||
|
---
|
4
content/tabs/third-tab.astro
Normal file
4
content/tabs/third-tab.astro
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
export const name = 'Third Tab'
|
||||||
|
export const icon = '3'
|
||||||
|
---
|
Reference in a new issue