Skip to content

Commit

Permalink
update settings view
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkiokan committed Mar 29, 2022
1 parent efe504a commit 481fbc6
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 25 deletions.
69 changes: 45 additions & 24 deletions src/renderer/components/AppConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

<div class="q-pl-md">
<el-form :inline="true" label-width="150px" size="mini" label-position="left" @submit.native.prevent>

<el-row>
<el-col :span="8">
<el-form-item label="Language">
Expand All @@ -32,37 +31,39 @@
</el-col>
<el-col :span="16">
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px">
*Preparation only. Will come, soon.
Want to have a specific coloring Schema? Create a new Issue with [feature/style]
</p>
</el-col>
</el-row>
</el-form>
</div>

<div>

</div>

<div>
<el-form-item label="External Links">
<el-checkbox v-model="config.enableExternalLinks"> Enable adding external Links </el-checkbox>
</el-form-item>
</div>
<el-divider content-position="left">Feature List</el-divider>
<div class="q-pl-md">
<el-form :inline="true" label-width="150px" size="mini" label-position="left" @submit.native.prevent>
<el-row>
<el-col :span="8">
<el-form-item label="External Links">
<el-checkbox v-model="config.enableExternalLinks"> Enable adding external Links </el-checkbox>
</el-form-item>
</el-col>
<el-col :span="16">
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px">
Add PKG's to your Processing Center from a external URL (experimental)
</p>
</el-col>
</el-row>

<el-row>
<el-col :span="8">
<el-form-item label="HB-Store">
<el-checkbox v-model="config.useHB"> Activate HB-Store </el-checkbox>
</el-form-item>
</el-col>

<el-col :span="8" v-if="config.useHB">
<el-form-item label="HB-Store CDN" class="full-width full-width-150">
<el-input v-model="config.useHBRoot" style="width: 100%;"> </el-input>
<el-checkbox v-model="config.useHB"> Activate HB-Store Tab</el-checkbox>
</el-form-item>
</el-col>

<el-col :span="8" v-if="config.useHB">
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px; padding-left: 30px;">
Needs to end with slash (e.g. domain.com<b>/</b>)
<el-col :span="16">
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px">
Access to the official HB-Store from pkg-zone.com directly
</p>
</el-col>
</el-row>
Expand All @@ -77,9 +78,28 @@
</el-col>

<el-col :span="16">
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px">
Legacy Mode is for the current working HB-Store API. Refactored one for the new version (on staging yet).<br>
Info: Once the new version is out you can access to more features on the HB-Store. <br>
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px" v-if="config.useHBMode == 'legacy'">
<b>Legacy Mode</b> is for the current working HB-Store API <br>
</p>
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px" v-if="config.useHBMode == 'refactored'">
<b>Refactored</b> one allows you to search and see your favorite apps <br>
</p>
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px" v-if="config.useHBMode == 'custom'">
<b>Custom</b> allows you to gather information from your own cdn store hosting <br>
</p>
</el-col>
</el-row>

<el-row v-if="config.useHB && config.useHBMode == 'custom'">
<el-col :span="8">
<el-form-item label="HB-Store CDN" class="full-width full-width-150">
<el-input v-model="config.useHBRoot" style="width: 100%;"> </el-input>
</el-form-item>
</el-col>

<el-col :span="16">
<p style="font-style: italic; font-size: 13px; color: #888; padding-top: 5px; padding-left: 30px;">
Must end with slash (e.g. domain.com<b>/</b>)
</p>
</el-col>
</el-row>
Expand Down Expand Up @@ -123,6 +143,7 @@ export default {
HBModes: [
{ key: 'legacy', value: 'Legacy', disabled: false },
{ key: 'refactored', value: 'Refactored', disabled: true },
{ key: 'custom', value: 'Custom CDN', disabled: false },
]
}},
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/pages/Changelog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
Add new Logo for Homebrew Store on the Download View. <br>
Added Darkmode SCSS styling. <br>
Added Style Schematics for the Application Scrollbar. <br>

Update Settings View with proper content splitting. <br>
Prepare HB-Store Settings for legacy, refactored and custom CDN. <br>
</p>
</el-timeline-item>
<el-timeline-item timestamp="2.5.2" placement="top">
Expand Down
9 changes: 9 additions & 0 deletions src/renderer/scss/darkmode.scss
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,15 @@ html.dark {
}

// dropdown
.el-popper[x-placement^=bottom] .popper_arrow,
.popper__arrow {
border-bottom-color: $bg3 !important;
top: -7px !important;

&::after {
border-bottom-color: $bg !important;
}
}
.el-select-dropdown {
background: $bg !important;
border-color: $border-color !important;
Expand Down

0 comments on commit 481fbc6

Please sign in to comment.