Merge branch 'main' into feat-new-gb-hours-card-on-organization-usage

This commit is contained in:
ernstmul
2024-09-24 17:04:45 +02:00
10 changed files with 27 additions and 15 deletions
@@ -26,7 +26,7 @@
await sdk.forProject.databases.updateBooleanAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.default,
data.key !== originalKey ? data.key : undefined
@@ -27,7 +27,7 @@
await sdk.forProject.databases.updateDatetimeAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.default,
data.key !== originalKey ? data.key : undefined
@@ -52,12 +52,16 @@
}
}
$: if (showEdit) {
currentAttr ??= { ...selectedAttribute };
originalKey = currentAttr.key;
error = null;
} else {
currentAttr = null;
$: onShow(showEdit);
function onShow(show: boolean) {
if (show) {
currentAttr ??= { ...selectedAttribute };
originalKey = currentAttr.key;
error = null;
} else {
currentAttr = null;
}
}
</script>
@@ -28,7 +28,7 @@
await sdk.forProject.databases.updateEmailAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.default,
data.key !== originalKey ? data.key : undefined
@@ -28,7 +28,7 @@
await sdk.forProject.databases.updateEnumAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.elements,
data.required,
data.default,
@@ -29,7 +29,7 @@
await sdk.forProject.databases.updateFloatAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.min,
data.max,
@@ -29,7 +29,7 @@
await sdk.forProject.databases.updateIntegerAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.min,
data.max,
@@ -26,7 +26,7 @@
await sdk.forProject.databases.updateIpAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.default,
data.key !== originalKey ? data.key : undefined
@@ -27,7 +27,7 @@
await sdk.forProject.databases.updateUrlAttribute(
databaseId,
collectionId,
data.key,
originalKey,
data.required,
data.default,
data.key !== originalKey ? data.key : undefined
+9 -1
View File
@@ -4,10 +4,18 @@ import { preprocessMeltUI, sequence } from '@melt-ui/pp';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sequence([sveltePreprocess(), preprocessMeltUI()]),
preprocess: sequence([
sveltePreprocess({
scss: {
silenceDeprecations: ['legacy-js-api']
}
}),
preprocessMeltUI()
]),
compilerOptions: {
accessors: !!process.env.VITEST
},
kit: {
alias: {
$routes: './src/routes'