Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Dec 9, 2023
2 parents b2ebc03 + f6575d2 commit 9ecef3f
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 25 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [5.0.2] - 2023-12-09

### Fixed

- Fix another XBEL parser bug
- Fix HTML parser

## [5.0.1] - 2023-12-09

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "org.handmadeideas.floccus"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 5000001
versionName "5.0.1"
versionCode 5000002
versionName "5.0.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
Expand Down
2 changes: 1 addition & 1 deletion manifest.chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "floccus bookmarks sync",
"short_name": "floccus",
"version": "5.0.1",
"version": "5.0.2",
"description": "__MSG_DescriptionExtension__",
"icons": {
"48": "icons/logo.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "floccus bookmarks sync",
"short_name": "floccus",
"version": "5.0.1",
"version": "5.0.2",
"description": "__MSG_DescriptionExtension__",
"icons": {
"48": "icons/logo.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "floccus bookmarks sync",
"short_name": "floccus",
"version": "5.0.1",
"version": "5.0.2",
"description": "__MSG_DescriptionExtension__",
"icons": {
"48": "icons/logo.png",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "floccus",
"version": "5.0.1",
"version": "5.0.2",
"description": "Sync your bookmarks privately across browsers and devices",
"scripts": {
"build": "gulp",
Expand Down
11 changes: 3 additions & 8 deletions src/lib/serializers/Html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ class HtmlSerializer implements Serializer {

deserialize(html): Folder {
const folders: Folder[] = parseByString(html)
if (folders.length === 1) {
folders[0].isRoot = true
return folders[0]
} else {
folders.forEach(f => f.parentId = '0')
return new Folder({id: '0', title: 'root', children: folders, location: ItemLocation.SERVER, isRoot: true})
}
folders.forEach(f => {f.parentId = '0'})
return new Folder({id: '0', title: 'root', children: folders, location: ItemLocation.SERVER, isRoot: true})
}
}

Expand Down Expand Up @@ -79,7 +74,7 @@ export const getRootFolder = (body: cheerio.Cheerio<cheerio.Element>) => {

export const parseByString = (content: string) => {
const $ = cheerio.load(content, {
decodeEntities: false
decodeEntities: true
})

const body = $('body')
Expand Down
4 changes: 2 additions & 2 deletions src/lib/serializers/Xbel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class XbelSerializer implements Serializer {
id: parseInt(node[':@']['@_id']),
parentId: folder.id,
url: node[':@']['@_href'],
title: node.bookmark?.[0]?.title?.[0]?.['#text'] || '',
title: '' + (node.bookmark?.[0]?.title?.[0]?.['#text'] || ''), // cast to string
location: ItemLocation.SERVER,
})
} else if (typeof node.folder !== 'undefined') {
item = new Folder({
id: parseInt(node[':@']?.['@_id']),
title: node.folder?.[0]?.title?.[0]?.['#text'] || '',
title: '' + (node.folder?.[0]?.title?.[0]?.['#text'] || ''), // cast to string
parentId: folder.id,
location: ItemLocation.SERVER,
})
Expand Down
2 changes: 0 additions & 2 deletions src/ui/components/OptionsGoogleDrive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
</v-card-title>
<v-card-text>
<v-switch
v-if="!isBrowser"
:value="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
Expand All @@ -93,7 +92,6 @@
:value="syncInterval"
@input="$emit('update:syncInterval', $event)" />
<OptionSyncStrategy
v-if="!isBrowser"
:value="strategy"
@input="$emit('update:strategy', $event)" />
<OptionNestedSync
Expand Down
2 changes: 0 additions & 2 deletions src/ui/components/OptionsNextcloudBookmarks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
</v-card-title>
<v-card-text>
<v-switch
v-if="!isBrowser"
:value="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
Expand All @@ -84,7 +83,6 @@
:value="syncInterval"
@input="$emit('update:syncInterval', $event)" />
<OptionSyncStrategy
v-if="!isBrowser"
:value="strategy"
@input="$emit('update:strategy', $event)" />
<OptionNestedSync
Expand Down
2 changes: 0 additions & 2 deletions src/ui/components/OptionsWebdav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
</v-card-title>
<v-card-text>
<v-switch
v-if="!isBrowser"
:value="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
Expand All @@ -93,7 +92,6 @@
:value="syncInterval"
@input="$emit('update:syncInterval', $event)" />
<OptionSyncStrategy
v-if="!isBrowser"
:value="strategy"
@input="$emit('update:strategy', $event)" />
<OptionNestedSync
Expand Down
1 change: 0 additions & 1 deletion src/ui/views/NewAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@
{{ t('LabelSyncbehaviorsetup') }}
</div>
<v-switch
v-if="isBrowser"
v-model="enabled"
:aria-label="t('LabelAutosync')"
:label="t('LabelAutosync')"
Expand Down

0 comments on commit 9ecef3f

Please sign in to comment.