1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-24 07:12:57 +00:00

Added file-export icon, moved some the types to typedef file

This commit is contained in:
2024-07-07 05:10:17 +04:00
parent b7a53daa9b
commit aaa1441a38
4 changed files with 21 additions and 3 deletions

11
src/app.d.ts vendored
View File

@@ -7,6 +7,17 @@ declare global {
// interface PageData {}
// interface PageState {}
// interface Platform {}
type LinkTarget = "_blank" | "_self" | "_parent" | "_top";
type IconName = (
"tag"
| "paint-brush"
| "arrow-left"
| "info-circle"
| "wrench"
| "globe"
| "plus"
| "file-export"
);
}
}

View File

@@ -5,12 +5,12 @@
export let href = null;
/**
* @type {"tag"|"paint-brush"|"arrow-left"|"info-circle"|"wrench"|"globe"|"plus"|null}
* @type {App.IconName|null}
*/
export let icon = null;
/**
* @type {"_blank"|"_self"|"_parent"|"_top"|undefined}
* @type {App.LinkTarget|undefined}
*/
export let target = undefined;
</script>

View File

@@ -36,4 +36,8 @@
.icon.icon-plus {
@include insert-icon('/img/plus.svg');
}
}
.icon.icon-file-export {
@include insert-icon('/img/file-export.svg');
}