Skip to content

Commit

Permalink
Merge pull request #284 from ozgurg/dev
Browse files Browse the repository at this point in the history
release: v6.71.0
  • Loading branch information
ozgurg authored Jan 9, 2024
2 parents ff81c31 + b7d4241 commit a2eb64e
Show file tree
Hide file tree
Showing 32 changed files with 279 additions and 287 deletions.
2 changes: 1 addition & 1 deletion assets/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $vh-app-bar-height: 72px;
$vh-app-drawer-width: 256px;

// z-index
$vh-app-drawer-zindex: 6;
$vh-app-drawer-zindex: 7;
$vh-app-drawer-overlay-zindex: $vh-app-drawer-zindex - 1;

// class
Expand Down
17 changes: 0 additions & 17 deletions assets/scss/plugins/vuetify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,6 @@
}
}

.v-app-bar {
background: transparentize($vh-color-app-bar, .18) !important;
backdrop-filter: blur(1rem);
box-shadow: none !important;
height: $vh-app-bar-height !important;
border-block-end: 1px solid rgba(#fff, .12) !important;
@media #{map-get($display-breakpoints, "md-and-up")} {
display: none !important
}
.v-toolbar__content {
height: 100% !important
}
.vh-app-logo {
margin-inline-start: -48px
}
}

.v-main {
transition: none !important;
padding: $vh-app-bar-height 0 0 0 !important;
Expand Down
27 changes: 20 additions & 7 deletions components/App/AppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,31 @@
aria-label="Menüyü aç"
@click="openDrawer()" />

<div class="d-flex justify-center flex-grow-1 h-100 py-2">
<div class="d-flex align-center justify-center flex-1">
<AppLogo />
</div>
</v-app-bar>
</template>

<script>
<script setup>
import { openDrawer } from "@/utils/drawer.js";
</script>

export default {
methods: {
openDrawer
<style lang="scss">
.v-app-bar {
background: transparentize($vh-color-app-bar, .18) !important;
backdrop-filter: blur(1rem);
box-shadow: none !important;
height: $vh-app-bar-height !important;
border-block-end: 1px solid rgba(#fff, .12) !important;
@media #{map-get($display-breakpoints, "md-and-up")} {
display: none !important
}
};
</script>
.v-toolbar__content {
height: 100% !important
}
.vh-app-logo {
margin-inline-start: -48px // Width of <v-app-bar-nav-icon />
}
}
</style>
66 changes: 30 additions & 36 deletions components/App/AppDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,40 @@
<v-navigation-drawer
app=""
touchless="">
<template #prepend>
<div class="px-4 py-4">
<AppLogo class="py-4" />
</div>
<v-divider class="mx-4 mb-2" />
</template>
<div class="pa-4">
<AppLogo />
</div>
<v-divider class="mx-4 mb-4" />

<div class="d-flex flex-column h-100">
<CalculatorList />
<CalculatorList />

<v-list
class="mb-auto"
subheader="">
<v-subheader class="d-flex flex-row justify-space-between">
<span>Döviz kurları</span>
<v-btn
href="https://www.exchangerate-api.com"
target="_blank"
plain=""
small=""
rel="nofollow noopener noreferrer"
class="mx-n2">
Exchange Rate API
<v-icon
size="12"
right="">
{{ icons.mdiOpenInNew }}
</v-icon>
</v-btn>
</v-subheader>
<v-list-item>
<ExchangeRateGrid />
</v-list-item>
</v-list>
</div>
<v-list
class="mb-auto"
subheader="">
<v-subheader class="d-flex flex-row justify-space-between">
<span>Döviz kurları</span>
<v-btn
href="https://www.exchangerate-api.com"
target="_blank"
plain=""
small=""
rel="nofollow noopener noreferrer"
class="mx-n2">
Exchange Rate API
<v-icon
size="12"
right="">
{{ icons.mdiOpenInNew }}
</v-icon>
</v-btn>
</v-subheader>
<v-list-item>
<ExchangeRateGrid />
</v-list-item>
</v-list>

<template #append>
<div class="d-none d-md-block pa-4">
<AppFooter />
</div>
<app-footer class="d-none d-md-block pa-4" />
</template>
</v-navigation-drawer>
<v-overlay
Expand Down
16 changes: 0 additions & 16 deletions components/App/AppFooter.vue

This file was deleted.

12 changes: 3 additions & 9 deletions components/App/AppLogo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,22 @@
<!-- eslint-disable vue/no-v-text-v-html-on-component vue/no-v-html -->
<nuxt-link
v-ripple=""
class="vh-app-logo d-flex align-center justify-center px-3 rounded-pill text--primary"
class="vh-app-logo d-flex align-center justify-center px-4 rounded-pill"
aria-label="Ana sayfaya git"
:to="AnaSayfa.url"
v-html="logo" />
</template>

<script>
<script setup>
import AnaSayfa from "@/data/pages/ana-sayfa.page.js";
import logo from "@/assets/img/logo.svg?raw";
export default {
data: () => ({
AnaSayfa,
logo
})
};
</script>

<!-- DO NOT make scoped -->
<style lang="scss">
.vh-app-logo {
background: rgba($vh-color-primary, $vh-card-hover-opacity);
height: 48px;
svg {
width: 192px;
height: 25px
Expand Down
28 changes: 28 additions & 0 deletions components/App/app-footer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<!--
To enhance readability, formatter:on and formatter:off comments have been added to disable the WebStorm formatter for the sentence.
-->
<footer class="text-center text-body-2 text--secondary">
<!-- @formatter:off -->
<a :href="authorUrl" rel="nofollow noopener noreferrer" target="_blank">@{{ authorUsername }}</a> tarafından <a :href="repositoryUrl" rel="nofollow noopener noreferrer" target="_blank">açık kaynaklı</a> olarak geliştirilmektedir
<!-- @formatter:on -->

<span class="font-weight-bold mt-2 d-block">
v{{ version }}
</span>
</footer>
</template>

<script setup>
// FIXME:
// Importing with object destructuring in "script setup" without using "as" causes WebStorm to not detect their usage within the template.
// This can be refactored when it's fixed.
import packageJson from "@/package.json";
const authorUrl = packageJson.author.url;
const authorUsername = packageJson.author.url.split("/")[3];
const repositoryUrl = packageJson.repository.url;
const version = packageJson.version;
</script>
7 changes: 2 additions & 5 deletions components/ArticleDisclaimerAlert.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<template>
<v-alert
:icon="false"
text=""
type="warning">
<vh-alert type="warning">
Bu web sitesinde yer alan <b>doğruluğu ve güncelliği teyit edilmemiş</b> yazılar siteyi dolu gösterme amaçlıdır
ve herhangi bir
<b>niteliği yoktur</b>. Bu yazılara bakarak herhangi bir <b>karar almayın</b> veya yazıları <b>referans olarak
göstermeyin</b>.
</v-alert>
</vh-alert>
</template>
2 changes: 1 addition & 1 deletion components/Calculation/CalculationPresetBrandCardItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<v-avatar
size="32"
color="white">
<Icon
<vh-icon
:icon="brand.icon"
:color="brand.color" />
</v-avatar>
Expand Down
2 changes: 1 addition & 1 deletion components/Calculator/CalculatorResultFormRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<v-divider
class="my-2 me-3"
vertical="" />
<CopyButton :value-to-copy="value" />
<copy-icon-button :value-to-copy="value" />
</template>
</v-text-field>
</FormRow>
Expand Down
2 changes: 1 addition & 1 deletion components/Calculator/CalculatorShareDialogUrl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<v-divider
class="my-2 me-3"
vertical="" />
<LazyCopyButton
<lazy-copy-icon-button
:value-to-copy="url"
container-selector="#calculatorShareDialogCopyUrlContainer" />
</template>
Expand Down
4 changes: 3 additions & 1 deletion components/CalculatorListItem.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<v-list-item :to="calculator.url">
<v-list-item
:to="calculator.url"
color="primary">
<v-list-item-icon>
<v-icon>
{{ calculator.icon }}
Expand Down
120 changes: 0 additions & 120 deletions components/CopyButton.vue

This file was deleted.

Loading

0 comments on commit a2eb64e

Please sign in to comment.