update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
|
|
@ -130,7 +130,6 @@ export const useDialogStore = defineStore('dialog', () => {
|
|||
}
|
||||
|
||||
function removeCommentMarkers() {
|
||||
console.log('remove comment markers');
|
||||
document.querySelectorAll('.comment-marker').forEach((bubble) => {
|
||||
bubble.parentNode.removeChild(bubble);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,22 +6,31 @@ import { useDialogStore } from './dialog';
|
|||
export const useVirtualSampleStore = defineStore('virtual-sample', () => {
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
const { openedFile } = storeToRefs(useDialogStore());
|
||||
const step = computed(() => {
|
||||
return page.value.steps.find((step) => step.id === 'virtualSample');
|
||||
});
|
||||
const isCompareModeEnabled = ref(false);
|
||||
|
||||
const activeTab = ref(step.value.files.dynamic ? 'dynamic' : 'static');
|
||||
const isCompareModeEnabled = ref(false);
|
||||
const currentFile = ref(null);
|
||||
const isLoopAnimationEnabled = ref(false);
|
||||
const isDownloadTriggered = ref(false);
|
||||
|
||||
const step = computed(() => {
|
||||
return page.value.steps.find((step) => step.id === 'virtualSample');
|
||||
});
|
||||
|
||||
const activeTab = computed(() =>
|
||||
step.value.files.dynamic ? 'dynamic' : 'static'
|
||||
);
|
||||
|
||||
const allVariations = computed(() =>
|
||||
Object.values(step.value.files?.dynamic).flat(1)
|
||||
);
|
||||
|
||||
watch(activeTab, () => (currentFile.value = null));
|
||||
|
||||
return {
|
||||
activeTab,
|
||||
currentFile,
|
||||
step,
|
||||
allVariations,
|
||||
isLoopAnimationEnabled,
|
||||
isCompareModeEnabled,
|
||||
isDownloadTriggered,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue