Skip to content

Commit

Permalink
feat: better defaults for site configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Jul 22, 2024
1 parent 88ca6d2 commit 2b32c32
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions src/pages/settings/components/SiteConfigurationTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ for (const site in sites) {
function newSite() {
sites.value["New site"] = {
sites: [""],
sites: [],
main_section: "main",
title_selector: "",
subtitle_selector: "",
image_selector: "",
image_selector: "img",
caption_selector: "",
paragraph_selector: "",
};
Expand Down Expand Up @@ -113,17 +113,30 @@ function newSite() {
<TagsInputInput placeholder="Sites" />
</TagsInput>

<Label for="main-section">Main section</Label>
<Input v-model="sites[site].main_section" id="main-section" />
<Label for="title-selector">Title Selector</Label>
<Input v-model="sites[site].title_selector" id="title-selector" />
<Label for="subtitle-selector">Subtitle Selector</Label>
<Input
v-model="sites[site].subtitle_selector"
id="subtitle-selector"
/>
<Label for="image-selector">Image Selector</Label>
<Input v-model="sites[site].image_selector" id="image-selector" />
<div>
<Label for="main-section">Main section</Label>
<Input v-model="sites[site].main_section" id="main-section" />
<Label for="title-selector">Title Selector</Label>
<Input
v-model="sites[site].title_selector"
id="title-selector"
/>
<Label for="subtitle-selector">Subtitle Selector</Label>
<Input
v-model="sites[site].subtitle_selector"
id="subtitle-selector"
/>
<Label for="caption-selector">Caption Selector</Label>
<Input
v-model="sites[site].caption_selector"
id="caption-selector"
/>
<Label for="image-selector">Image Selector</Label>
<Input
v-model="sites[site].image_selector"
id="image-selector"
/>
</div>

<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
Expand Down

0 comments on commit 2b32c32

Please sign in to comment.