Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@json.ms/www",
"private": true,
"type": "module",
"version": "1.3.7",
"version": "1.3.8",
"scripts": {
"dev": "vite --host",
"build": "run-p type-check \"build-only {@}\" --",
Expand Down
4 changes: 2 additions & 2 deletions src/components/FileManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ watch(() => globalStore.fileManager.visible, () => {
v-if="!isFolderSynced(structure) && !structure.endpoint"
icon="mdi-help-network-outline"
title="No endpoint or syncing detected"
text="Files cannot be loaded without a synced local directory or a properly configured endpoint. Please check your project's settings in advanced mode."
text="Files cannot be loaded without a synced local directory or a properly configured endpoint. Please check your project's settings in developer mode."
/>
<v-empty-state
v-else-if="structure.endpoint || isFolderSynced(structure)"
Expand All @@ -431,7 +431,7 @@ watch(() => globalStore.fileManager.visible, () => {
v-else
icon="mdi-help-network-outline"
title="No endpoint detected"
text="Files cannot be loaded without a properly configured endpoint. Please check your project's settings in advanced mode."
text="Files cannot be loaded without a properly configured endpoint. Please check your project's settings in developer mode."
/>
</v-card>
<v-card
Expand Down
6 changes: 3 additions & 3 deletions src/components/JSONms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ const tab = computed({
if (!globalStore.uiConfig.data && globalStore.uiConfig.documentation) {
return 'docs';
}
const advancedMode = globalStore.admin.structure && windowWidth.value > 900;
if (advancedMode && splitTabs.value) {
const developerMode = globalStore.admin.structure && windowWidth.value > 900;
if (developerMode && splitTabs.value) {
return globalStore.admin.dataTab === 'data'
? 'docs'
: globalStore.admin.dataTab
}
return advancedMode
return developerMode
? globalStore.admin.dataTab
: 'data';
},
Expand Down
40 changes: 20 additions & 20 deletions src/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,26 +162,26 @@ watch(() => serverSettings.version, () => {
prepend-icon="mdi-file-cabinet"
@click="onFileManagerClick"
/>
<v-expand-transition>
<div v-if="globalStore.uiConfig.sidebar_advanced && globalStore.admin.structure && canInteractWithServer">
<v-list-subheader title="Advanced details" />
<v-list-item
v-if="globalStore.uiConfig.sidebar_advanced_hash"
title="Hash"
:subtitle="lastDetails.hash || 'Loading...'"
/>
<v-list-item
v-if="globalStore.uiConfig.sidebar_advanced_server"
title="Server version"
:subtitle="lastDetails.version || 'Loading...'"
/>
<v-list-item
v-if="globalStore.uiConfig.sidebar_advanced_upload"
title="Upload max size"
:subtitle="lastDetails.uploadMaxSize || 'Loading...'"
/>
</div>
</v-expand-transition>
<!-- <v-expand-transition>-->
<!-- <div v-if="globalStore.uiConfig.sidebar_developer && globalStore.admin.structure && canInteractWithServer">-->
<!-- <v-list-subheader title="Developer details" />-->
<!-- <v-list-item-->
<!-- v-if="globalStore.uiConfig.sidebar_developer_hash"-->
<!-- title="Hash"-->
<!-- :subtitle="lastDetails.hash || 'Loading...'"-->
<!-- />-->
<!-- <v-list-item-->
<!-- v-if="globalStore.uiConfig.sidebar_developer_server"-->
<!-- title="Server version"-->
<!-- :subtitle="lastDetails.version || 'Loading...'"-->
<!-- />-->
<!-- <v-list-item-->
<!-- v-if="globalStore.uiConfig.sidebar_developer_upload"-->
<!-- title="Upload max size"-->
<!-- :subtitle="lastDetails.uploadMaxSize || 'Loading...'"-->
<!-- />-->
<!-- </div>-->
<!-- </v-expand-transition>-->
</template>
</v-list>
<template #append>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,20 +192,20 @@ watch(() => currentRoute.params.locale, () => {
/>

<v-btn-toggle
v-if="globalStore.uiConfig.toolbar_advanced && globalStore.uiConfig.structure && windowWidth > 900"
v-if="globalStore.uiConfig.toolbar_developer && globalStore.uiConfig.structure && windowWidth > 900"
v-model="globalStore.admin.structure"
color="primary"
variant="text"
@update:model-value="value => globalStore.admin.structure = !!value"
>
<v-tooltip
text="Advanced (CTRL+A)"
text="Developer (CTRL+A)"
location="bottom"
>
<template #activator="{ props }">
<v-btn v-bind="props" :value="true">
<v-icon icon="mdi-code-tags" style="top: 1px" :start="windowWidth > 1400" />
<span v-if="windowWidth > 1400">Advanced</span>
<v-icon icon="mdi-console" style="top: 1px" :start="windowWidth > 1400" />
<span v-if="windowWidth > 1400">Developer</span>
</v-btn>
</template>
</v-tooltip>
Expand Down
10 changes: 5 additions & 5 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface IUIConfig {
toolbar_project_selector: boolean
toolbar_project_selector_new: boolean
toolbar_project_selector_delete: boolean
toolbar_advanced: boolean
toolbar_developer: boolean
toolbar_site_preview: boolean
toolbar_site_preview_refresh: boolean
toolbar_site_preview_mobile: boolean
Expand All @@ -104,10 +104,10 @@ export interface IUIConfig {
sidebar_sections: boolean
sidebar_tools: boolean
sidebar_tools_file_manager: boolean
sidebar_advanced: boolean
sidebar_advanced_hash: boolean
sidebar_advanced_server: boolean
sidebar_advanced_upload: boolean
sidebar_developer: boolean
sidebar_developer_hash: boolean
sidebar_developer_server: boolean
sidebar_developer_upload: boolean
sidebar_tutorial: boolean
sidebar_theme: boolean
sidebar_github: boolean
Expand Down
10 changes: 5 additions & 5 deletions src/stores/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const defaultUIConfig: IUIConfig = {
toolbar_project_selector: true,
toolbar_project_selector_new: true,
toolbar_project_selector_delete: true,
toolbar_advanced: true,
toolbar_developer: true,
toolbar_site_preview: true,
toolbar_site_preview_refresh: true,
toolbar_site_preview_mobile: true,
Expand All @@ -41,10 +41,10 @@ const defaultUIConfig: IUIConfig = {
sidebar_sections: true,
sidebar_tools: true,
sidebar_tools_file_manager: true,
sidebar_advanced: true,
sidebar_advanced_hash: true,
sidebar_advanced_server: true,
sidebar_advanced_upload: true,
sidebar_developer: true,
sidebar_developer_hash: true,
sidebar_developer_server: true,
sidebar_developer_upload: true,
sidebar_tutorial: true,
sidebar_theme: true,
sidebar_github: true,
Expand Down