Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/202402 open native #1381

Merged
merged 132 commits into from
Feb 28, 2024
Merged
Changes from 1 commit
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
db41140
WIP
qdraw Feb 12, 2024
459c11c
it does something
qdraw Feb 12, 2024
2c15408
Add tests
qdraw Feb 12, 2024
e652424
Merge branch 'master' into feature/202402-open-native
qdraw Feb 12, 2024
c83e19b
try this
qdraw Feb 12, 2024
97a9de3
rm
qdraw Feb 12, 2024
036ef91
add filter
qdraw Feb 12, 2024
dac7ad2
add fixes
qdraw Feb 12, 2024
816b94c
fix tests && add code for windows
qdraw Feb 13, 2024
b20eaaf
fix issue
qdraw Feb 13, 2024
c63e95e
not working
qdraw Feb 13, 2024
861a32b
wip
qdraw Feb 13, 2024
f2e58e9
WIP
qdraw Feb 13, 2024
8982082
add tests
qdraw Feb 14, 2024
539820f
rename
qdraw Feb 14, 2024
9552be9
Fix tests on Mac OS
qdraw Feb 14, 2024
5ebb510
fix test issues
qdraw Feb 14, 2024
9857657
Give regex more time
qdraw Feb 14, 2024
f40cfde
Merge branch 'master' into feature/202402-open-native
qdraw Feb 14, 2024
e737df8
supress warnings && add files back
qdraw Feb 14, 2024
7b21b2b
fix test
qdraw Feb 14, 2024
bbca16e
fixing stuff
qdraw Feb 14, 2024
edcf7d4
add nighly
qdraw Feb 14, 2024
3eb5c6c
add check
qdraw Feb 14, 2024
48b2981
add debug
qdraw Feb 14, 2024
c494074
try this
qdraw Feb 14, 2024
22f63fd
add fix linux/freebsd
qdraw Feb 14, 2024
7215360
add comments
qdraw Feb 14, 2024
0b15c66
rename reference
qdraw Feb 14, 2024
93bd439
just nuget
qdraw Feb 14, 2024
2280334
format && give more time
qdraw Feb 14, 2024
219355b
add project && code formatting
qdraw Feb 15, 2024
a12c496
test this
qdraw Feb 15, 2024
d1c53d9
add small delay
qdraw Feb 15, 2024
3615265
add code // wip
qdraw Feb 15, 2024
b09c524
add mappers
qdraw Feb 15, 2024
b567448
add extra tests
qdraw Feb 15, 2024
c6ecb6f
change tests
qdraw Feb 16, 2024
5f36f25
fix test
qdraw Feb 16, 2024
bfb6c99
supress some issues
qdraw Feb 16, 2024
1949a0b
add tests
qdraw Feb 16, 2024
5c63372
add check
qdraw Feb 16, 2024
a4243fb
change to test on windows
qdraw Feb 16, 2024
8eca0c2
Merge branch 'master' into feature/202402-open-native
qdraw Feb 18, 2024
13c6ac5
Merge branch 'master' into feature/202402-open-native
qdraw Feb 18, 2024
66453f8
add stacktrace
qdraw Feb 18, 2024
41d3349
Merge branch 'master' into feature/202402-open-native
qdraw Feb 18, 2024
77cb2d3
rm duplicate content
qdraw Feb 18, 2024
ada1c05
start working on open-preflight
qdraw Feb 18, 2024
bb1ef0e
Add mapper && add poc
qdraw Feb 18, 2024
411fc7e
update docs
qdraw Feb 18, 2024
f14b94d
more clear
qdraw Feb 18, 2024
eab1e67
fix test
qdraw Feb 19, 2024
4916376
add tests
qdraw Feb 19, 2024
6723419
add tests
qdraw Feb 19, 2024
17876b9
add more tests
qdraw Feb 19, 2024
2e2f2ef
rename
qdraw Feb 19, 2024
295175e
add test
qdraw Feb 19, 2024
60e61c5
retry
qdraw Feb 19, 2024
3f28f3f
rename feature
qdraw Feb 19, 2024
b678b2e
list in button is not supported
qdraw Feb 19, 2024
daa8a10
move archive into seperate folder
qdraw Feb 19, 2024
aee02d1
change path
qdraw Feb 19, 2024
0f60fe5
Merge branch 'master' into feature/202402-open-native
qdraw Feb 20, 2024
ead5d8b
ignore if collections false && add removeal of duplicates
qdraw Feb 20, 2024
219568c
add comment
qdraw Feb 20, 2024
6a6ce5f
move tests / rename starskycore => starsky.project.web
qdraw Feb 20, 2024
9bb3320
using
qdraw Feb 21, 2024
5e1363b
add check && change menu item desktop app
qdraw Feb 21, 2024
a60e5c6
fixes
qdraw Feb 21, 2024
6dd617d
Add tests
qdraw Feb 21, 2024
ef2e573
[Swagger] Auto commited swagger/openapi list
qdraw Feb 21, 2024
7202680
add imageformat to directory && add UI to open files
qdraw Feb 21, 2024
00725a1
data test
qdraw Feb 21, 2024
b03b7f9
prefix
qdraw Feb 21, 2024
654fdf7
change launch.json && update settings && remove commented out code
qdraw Feb 21, 2024
7af06b7
editor-open-error
qdraw Feb 21, 2024
68b02ae
add tests
qdraw Feb 21, 2024
b59ab0f
rename and add tests
qdraw Feb 21, 2024
b482cde
add comment
qdraw Feb 21, 2024
a005be8
add tests
qdraw Feb 21, 2024
49faf44
add tests
qdraw Feb 22, 2024
4b8907d
fix tests
qdraw Feb 22, 2024
e5ff6a0
add tests
qdraw Feb 22, 2024
f534292
add tests
qdraw Feb 22, 2024
5674fdf
add tests
qdraw Feb 22, 2024
e977700
add tests
qdraw Feb 22, 2024
95a5ff4
0 issue
qdraw Feb 22, 2024
6d78d80
fix test
qdraw Feb 22, 2024
319aa5d
add tests
qdraw Feb 22, 2024
ac43e8c
add for single page
qdraw Feb 22, 2024
a8cc3ff
fix readonly
qdraw Feb 22, 2024
70a427e
add to menu
qdraw Feb 22, 2024
040eed2
rename
qdraw Feb 22, 2024
e24c49e
add test
qdraw Feb 22, 2024
3bc8c9f
add tests
qdraw Feb 22, 2024
4b9f612
add WIP
qdraw Feb 22, 2024
444e940
remove unused
qdraw Feb 22, 2024
5d8a236
add comment
qdraw Feb 22, 2024
c0be912
add test
qdraw Feb 22, 2024
bdd09fb
add check if feature exists
qdraw Feb 22, 2024
240d905
add inital setup
qdraw Feb 22, 2024
db1872b
setup
qdraw Feb 22, 2024
bff1e39
add tests
qdraw Feb 22, 2024
d77e74b
changes
qdraw Feb 22, 2024
e91bac9
add nice warning
qdraw Feb 22, 2024
308fa1e
update
qdraw Feb 22, 2024
c9d2444
add tests
qdraw Feb 22, 2024
b8f8330
update
qdraw Feb 22, 2024
ca37ef2
split app settings in sperate module
qdraw Feb 23, 2024
43f9c6e
add UI code
qdraw Feb 24, 2024
53a0e52
add code
qdraw Feb 24, 2024
3f49be5
fix tests
qdraw Feb 25, 2024
48b8e18
updates
qdraw Feb 25, 2024
12a8866
add some texts
qdraw Feb 25, 2024
483036f
add test / move translations
qdraw Feb 26, 2024
ba1a268
fix tests
qdraw Feb 26, 2024
a77d685
add keys
qdraw Feb 26, 2024
d240e70
add usings
qdraw Feb 27, 2024
9fdf5ce
add tests
qdraw Feb 27, 2024
3b710ab
tests
qdraw Feb 27, 2024
0a86864
add test code
qdraw Feb 27, 2024
b1011ae
add tests
qdraw Feb 27, 2024
322fc06
add test
qdraw Feb 27, 2024
0ffd351
add tests
qdraw Feb 27, 2024
666ba6a
rename
qdraw Feb 27, 2024
4969610
add german / move to localization.json
qdraw Feb 28, 2024
1ad7e7a
enable german as language
qdraw Feb 28, 2024
1a5ce96
update docs
qdraw Feb 28, 2024
80e946a
keep a changelog
qdraw Feb 28, 2024
12ceb73
Merge branch 'master' into feature/202402-open-native
qdraw Feb 28, 2024
e37f91d
fix docs build
qdraw Feb 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add code
  • Loading branch information
qdraw committed Feb 24, 2024
commit 53a0e52911910faefcf106dd9722a26ad3871b22
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { ChangeEvent, useState } from "react";
import useFetch from "../../../hooks/use-fetch";
import useGlobalSettings from "../../../hooks/use-global-settings";
import { IAppSettings } from "../../../interfaces/IAppSettings";
Expand All @@ -10,6 +10,38 @@ import { UrlQuery } from "../../../shared/url-query";
import FormControl from "../../atoms/form-control/form-control";
import SwitchButton from "../../atoms/switch-button/switch-button";

async function updateDefaultEditorPhotos(
event: ChangeEvent<HTMLDivElement>,
setIsMessage: React.Dispatch<React.SetStateAction<string>>
) {
const bodyParams = new URLSearchParams();
bodyParams.set("desktopC1111ollectionsOpen", event.target.innerText);

const result = await FetchPost(new UrlQuery().UrlApiAppSettings(), bodyParams.toString());
if (result.statusCode != 200) {
setIsMessage("FAIL");
return;
}
setIsMessage("OK");
}

async function toggleCollections(
value: boolean,
setIsMessage: React.Dispatch<React.SetStateAction<string>>
) {
const desktopCollectionsOpen = value ? RawJpegMode.Raw : RawJpegMode.Jpeg;

const bodyParams = new URLSearchParams();
bodyParams.set("desktopCollectionsOpen", desktopCollectionsOpen.toString());

const result = await FetchPost(new UrlQuery().UrlApiAppSettings(), bodyParams.toString());
if (result.statusCode != 200) {
setIsMessage("FAIL");
return;
}
setIsMessage("OK");
}

const PreferencesAppSettingsDesktop: React.FunctionComponent = () => {
const appSettings = useFetch(new UrlQuery().UrlApiAppSettings(), "get")
?.data as IAppSettings | null;
Expand All @@ -28,20 +60,6 @@ const PreferencesAppSettingsDesktop: React.FunctionComponent = () => {
// List<AppSettingsDefaultEditorApplication> DefaultDesktopEditor
// CollectionsOpenType.RawJpegMode DesktopCollectionsOpen

async function toggleCollections(value: boolean) {
const desktopCollectionsOpen = value ? RawJpegMode.Raw : RawJpegMode.Jpeg;

const bodyParams = new URLSearchParams();
bodyParams.set("desktopCollectionsOpen", desktopCollectionsOpen.toString());

const result = await FetchPost(new UrlQuery().UrlApiAppSettings(), bodyParams.toString());
if (result.statusCode != 200) {
setIsMessage("FAIL");
return;
}
setIsMessage("OK");
}

// for showing a notification
const [isMessage, setIsMessage] = useState("");

Expand All @@ -57,13 +75,13 @@ const PreferencesAppSettingsDesktop: React.FunctionComponent = () => {
data-test="desktop-collections-open-toggle"
isEnabled={true}
leftLabel={MessageSwitchButtonDesktopCollectionsJpegDefaultOff}
onToggle={toggleCollections}
onToggle={(value) => toggleCollections(value, setIsMessage)}
rightLabel={MessageSwitchButtonDesktopCollectionsRawOn}
/>
<h4>Tags:</h4>
<h4>Default application to edit photos:</h4>
<FormControl
spellcheck={true}
onInput={handleUpdateChange}
onInput={(value) => updateDefaultEditorPhotos(value, setIsMessage)}
name="tags"
contentEditable={true}
></FormControl>
Expand Down
Loading