WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 96561ec

Browse files
committed
upgrade framework7 to 9.0
1 parent 608411f commit 96561ec

28 files changed

+423
-238
lines changed

package-lock.json

Lines changed: 20 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"crypto-js": "^4.2.0",
2828
"dom7": "^4.0.6",
2929
"echarts": "^6.0.0",
30-
"framework7": "^8.3.4",
30+
"framework7": "^9.0.1",
3131
"framework7-icons": "^5.0.5",
32-
"framework7-vue": "^8.3.4",
32+
"framework7-vue": "^9.0.1",
3333
"jalaali-js": "^1.2.8",
3434
"leaflet": "^1.9.4",
3535
"line-awesome": "^1.3.0",
@@ -38,7 +38,7 @@
3838
"pinia": "^3.0.4",
3939
"register-service-worker": "^1.7.2",
4040
"skeleton-elements": "^4.0.1",
41-
"swiper": "^10.2.0",
41+
"swiper": "^12.0.3",
4242
"ua-parser-js": "^1.0.39",
4343
"vue": "^3.5.25",
4444
"vue-echarts": "^8.0.1",

src/components/mobile/ListItemSelectionPopup.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<f7-popup push :opened="show" @popup:open="onPopupOpen" @popup:closed="onPopupClosed">
33
<f7-page>
44
<f7-navbar :outline="false">
5-
<f7-nav-left></f7-nav-left>
65
<f7-nav-title :title="title" v-if="title"></f7-nav-title>
76
<f7-nav-right>
87
<f7-link popup-close :text="tt('Done')"></f7-link>

src/components/mobile/ListItemSelectionSheet.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
55
<f7-toolbar>
66
<div class="swipe-handler"></div>
7-
<div class="left"></div>
87
<div class="right">
98
<f7-link sheet-close :text="tt('Done')"></f7-link>
109
</div>

src/components/mobile/MapSheet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<f7-link :text="tt('Done')" @click="save"></f7-link>
1212
</div>
1313
</f7-toolbar>
14-
<f7-page-content class="no-margin-vertical no-padding-vertical">
14+
<f7-page-content>
1515
<map-view ref="map" height="400px" :geo-location="geoLocation" @click="updateSpecifiedGeoLocation">
1616
<template #error-title="{ mapSupported, mapDependencyLoaded }">
1717
<div class="display-flex padding justify-content-space-between align-items-center">

src/components/mobile/PasscodeInputSheet.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
<div class="padding-horizontal padding-bottom">
1010
<p class="no-margin" v-if="hint">{{ hint }}</p>
1111
<slot></slot>
12-
<f7-list strong class="no-margin">
12+
<f7-list class="no-margin">
1313
<f7-list-input
1414
type="number"
1515
autocomplete="one-time-code"
1616
outline
17-
floating-label
1817
clear-button
1918
class="no-margin no-padding-bottom"
20-
:label="tt('Passcode')"
2119
:placeholder="tt('Passcode')"
2220
v-model:value="currentPasscode"
2321
@keyup.enter="confirm()"

src/components/mobile/PasswordInputSheet.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@
88
</div>
99
<div class="padding-horizontal padding-bottom">
1010
<p class="no-margin" v-if="hint">{{ hint }}</p>
11-
<f7-list strong class="no-margin">
11+
<f7-list class="no-margin">
1212
<f7-list-input
1313
type="password"
1414
autocomplete="current-password"
1515
outline
16-
floating-label
1716
clear-button
1817
class="no-margin no-padding-bottom"
1918
:class="color ? 'color-' + color : ''"
20-
:label="tt('Current Password')"
2119
:placeholder="tt('Current Password')"
2220
v-model:value="currentPassword"
2321
@keyup.enter="confirm()"

src/components/mobile/TransactionTagSelectionSheet.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
:text="tt('Add')" v-if="!allTags || !allTags.length || noAvailableTag" @click="addNewTag"></f7-link>
1414
</div>
1515
</f7-toolbar>
16-
<f7-searchbar ref="searchbar" custom-searchs
17-
:value="filterContent"
18-
:placeholder="tt('Find tag')"
19-
:disable-button="false"
20-
v-if="enableFilter"
21-
@input="filterContent = $event.target.value"
22-
@focus="onSearchBarFocus">
23-
</f7-searchbar>
24-
<f7-page-content :class="'no-padding-top ' + heightClass">
16+
<f7-page-content :class="heightClass">
17+
<f7-searchbar ref="searchbar" custom-searchs
18+
:value="filterContent"
19+
:placeholder="tt('Find tag')"
20+
:disable-button="false"
21+
v-if="enableFilter"
22+
@input="filterContent = $event.target.value"
23+
@focus="onSearchBarFocus">
24+
</f7-searchbar>
2525
<f7-list class="no-margin-top no-margin-bottom" v-if="(!allTags || !allTags.length || noAvailableTag) && !newTag">
2626
<f7-list-item :title="tt('No available tag')"></f7-list-item>
2727
</f7-list>
@@ -49,7 +49,7 @@
4949
v-if="allowAddNewTag && !newTag"
5050
@click="addNewTag()">
5151
</f7-list-item>
52-
<f7-list-item checkbox indeterminate disabled v-if="allowAddNewTag && newTag">
52+
<f7-list-item class="editing-list-item" checkbox indeterminate disabled v-if="allowAddNewTag && newTag">
5353
<template #media>
5454
<f7-icon class="transaction-tag-icon" f7="number"></f7-icon>
5555
</template>
@@ -154,9 +154,9 @@ const noAvailableTag = computed<boolean>(() => {
154154
});
155155
156156
function getHeightClass(): string {
157-
if (transactionTagsStore.allTransactionTags && transactionTagsStore.allVisibleTagsCount > 8) {
157+
if (transactionTagsStore.allTransactionTags && transactionTagsStore.allVisibleTagsCount > 6) {
158158
return 'tag-selection-huge-sheet';
159-
} else if (transactionTagsStore.allTransactionTags && transactionTagsStore.allVisibleTagsCount > 4) {
159+
} else if (transactionTagsStore.allTransactionTags && transactionTagsStore.allVisibleTagsCount > 3) {
160160
return 'tag-selection-large-sheet';
161161
} else {
162162
return 'tag-selection-default-sheet';
@@ -240,23 +240,23 @@ function onSheetClosed(): void {
240240

241241
<style>
242242
.tag-selection-default-sheet {
243-
height: 200px;
243+
height: 310px;
244244
}
245245
246246
@media (min-height: 630px) {
247247
.tag-selection-large-sheet {
248-
height: 260px;
248+
height: 370px;
249249
}
250250
251251
.tag-selection-huge-sheet {
252-
height: 380px;
252+
height: 500px;
253253
}
254254
}
255255
256256
@media (max-height: 629px) {
257257
.tag-selection-large-sheet,
258258
.tag-selection-huge-sheet {
259-
height: 240px;
259+
height: 360px;
260260
}
261261
}
262262

src/components/mobile/TreeViewSelectionSheet.vue

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@
33
style="height: auto" :opened="show" @sheet:open="onSheetOpen" @sheet:closed="onSheetClosed">
44
<f7-toolbar>
55
<div class="swipe-handler"></div>
6-
<div class="left"></div>
76
<div class="right">
87
<f7-link sheet-close :text="tt('Done')"></f7-link>
98
</div>
109
</f7-toolbar>
11-
<f7-searchbar ref="searchbar" custom-searchs
12-
:value="filterContent"
13-
:placeholder="filterPlaceholder"
14-
:disable-button="false"
15-
v-if="enableFilter"
16-
@input="filterContent = $event.target.value"
17-
@focus="onSearchBarFocus">
18-
</f7-searchbar>
19-
<f7-page-content :class="'no-padding-top ' + heightClass">
10+
<f7-page-content :class="heightClass">
11+
<f7-searchbar ref="searchbar" custom-searchs
12+
:value="filterContent"
13+
:placeholder="filterPlaceholder"
14+
:disable-button="false"
15+
v-if="enableFilter"
16+
@input="filterContent = $event.target.value"
17+
@focus="onSearchBarFocus">
18+
</f7-searchbar>
2019
<f7-list class="no-margin-top no-margin-bottom" v-if="!filteredItems || !filteredItems.length">
2120
<f7-list-item :title="filterNoItemsText"></f7-list-item>
2221
</f7-list>
@@ -150,23 +149,23 @@ function onSheetClosed(): void {
150149

151150
<style>
152151
.tree-view-selection-default-sheet {
153-
height: 200px;
152+
height: 310px;
154153
}
155154
156155
@media (min-height: 630px) {
157156
.tree-view-selection-large-sheet {
158-
height: 260px;
157+
height: 370px;
159158
}
160159
161160
.tree-view-selection-huge-sheet {
162-
height: 380px;
161+
height: 500px;
163162
}
164163
}
165164
166165
@media (max-height: 629px) {
167166
.tree-view-selection-large-sheet,
168167
.tree-view-selection-huge-sheet {
169-
height: 240px;
168+
height: 360px;
170169
}
171170
}
172171
</style>

src/components/mobile/TwoColumnListItemSelectionSheet.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
<f7-link sheet-close :text="tt('Done')"></f7-link>
99
</div>
1010
</f7-toolbar>
11-
<f7-searchbar ref="searchbar" custom-searchs
12-
:value="filterContent"
13-
:placeholder="filterPlaceholder"
14-
:disable-button="false"
15-
v-if="enableFilter"
16-
@input="filterContent = $event.target.value"
17-
@focus="onSearchBarFocus">
18-
</f7-searchbar>
19-
<f7-page-content class="no-padding-top">
11+
<f7-page-content>
12+
<f7-searchbar ref="searchbar" custom-searchs
13+
:value="filterContent"
14+
:placeholder="filterPlaceholder"
15+
:disable-button="false"
16+
v-if="enableFilter"
17+
@input="filterContent = $event.target.value"
18+
@focus="onSearchBarFocus">
19+
</f7-searchbar>
2020
<div class="grid grid-gap" :class="{ 'grid-cols-2': filteredItems && filteredItems.length }">
2121
<div>
2222
<div class="primary-list-container">
@@ -149,13 +149,13 @@ function onSheetClosed(): void {
149149

150150
<style>
151151
.primary-list-container, .secondary-list-container {
152-
height: 260px;
152+
height: 310px;
153153
overflow-y: auto;
154154
}
155155
156156
@media (max-height: 629px) {
157157
.primary-list-container, .secondary-list-container {
158-
height: 240px;
158+
height: 290px;
159159
}
160160
}
161161

0 commit comments

Comments
 (0)