new changes

This commit is contained in:
Andreas Schaafsma 2025-01-08 13:28:48 +01:00
parent d8d0aaa90e
commit a1aef7cae5
10 changed files with 9 additions and 6730 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 38 KiB

BIN
db/seed/posts/obsolete.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

6721
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@ import {
addToExistingBucket, addToExistingBucket,
addToNewBucketForPost, addToNewBucketForPost,
writeFilesToFS, writeFilesToFS,
} from "@/app/lib/actions/entitymanagement/attachment/attachmentActions"; } from "@/app/lib/actions/entityManagement/attachment/attachmentActions";
import { Attributes } from "@sequelize/core"; import { Attributes } from "@sequelize/core";
import { RequestCookie } from "next/dist/compiled/@edge-runtime/cookies"; import { RequestCookie } from "next/dist/compiled/@edge-runtime/cookies";
import { APIError, attemptAPIAction } from "@/util/api"; import { APIError, attemptAPIAction } from "@/util/api";

View File

@ -1,4 +1,4 @@
import { GetPostsAttributes } from "@/app/lib/actions/entitymanagement/post/postActions"; import { GetPostsAttributes } from "@/app/lib/actions/entityManagement/post/postActions";
import { Post, Project, Bucket, PostBucket, Attachment } from "@/models"; import { Post, Project, Bucket, PostBucket, Attachment } from "@/models";
import { Attributes } from "@sequelize/core"; import { Attributes } from "@sequelize/core";
import { UUID } from "crypto"; import { UUID } from "crypto";

View File

@ -15,7 +15,7 @@ import { handleActionResult } from "@/app/lib/actions/clientActionHandler";
import { import {
getPostsWithBucketsAndProject, getPostsWithBucketsAndProject,
GetPostsAttributes, GetPostsAttributes,
} from "@/app/lib/actions/entitymanagement/post/postActions"; } from "@/app/lib/actions/entityManagement/post/postActions";
import { PostViewProps } from "@/components/views/admin/post"; import { PostViewProps } from "@/components/views/admin/post";
import { StateHook } from "@/util/"; import { StateHook } from "@/util/";

View File

@ -5,7 +5,7 @@ import PostTable, {
import { import {
GetPostsAttributes, GetPostsAttributes,
PostServerActions, PostServerActions,
} from "@/app/lib/actions/entitymanagement/post/postActions"; } from "@/app/lib/actions/entityManagement/post/postActions";
import { EditorState } from "@/components/client/admin/PostEditor"; import { EditorState } from "@/components/client/admin/PostEditor";
import { Project } from "@/models"; import { Project } from "@/models";
import { ReactNode, useState } from "react"; import { ReactNode, useState } from "react";

View File

@ -8,8 +8,8 @@ import {
updatePost, updatePost,
GetPostsAttributes, GetPostsAttributes,
PostServerActions, PostServerActions,
} from "@/app/lib/actions/entitymanagement/post/postActions"; } from "@/app/lib/actions/entityManagement/post/postActions";
import { getProjects } from "@/app/lib/actions/entitymanagement/post/projectActions"; import { getProjects } from "@/app/lib/actions/entityManagement/post/projectActions";
import { Bucket, Project, Post, dbSync, Attachment } from "@/models"; import { Bucket, Project, Post, dbSync, Attachment } from "@/models";
import { handleActionResult } from "@/app/lib/actions/clientActionHandler"; import { handleActionResult } from "@/app/lib/actions/clientActionHandler";
import { CPostView } from "@/components/views/admin/post"; import { CPostView } from "@/components/views/admin/post";

View File

@ -7,8 +7,8 @@ import {
deletePost, deletePost,
getPostsWithBucketsAndProject, getPostsWithBucketsAndProject,
updatePost, updatePost,
} from "@/app/lib/actions/entitymanagement/post/postActions"; } from "@/app/lib/actions/entityManagement/post/postActions";
import { getProjects } from "@/app/lib/actions/entitymanagement/post/projectActions"; import { getProjects } from "@/app/lib/actions/entityManagement/post/projectActions";
import { Bucket, Project, Post, dbSync, Attachment } from "@/models"; import { Bucket, Project, Post, dbSync, Attachment } from "@/models";
import { tryCreateAttachment } from "@/app/api/attachment/route"; import { tryCreateAttachment } from "@/app/api/attachment/route";
import { Attributes } from "@sequelize/core"; import { Attributes } from "@sequelize/core";

View File

@ -24,7 +24,7 @@ export class Project extends Model<
@AutoIncrement @AutoIncrement
declare id: CreationOptional<number>; declare id: CreationOptional<number>;
@Attribute(DataTypes.STRING) @Attribute(DataTypes.STRING)
@Unique // @Unique
declare readableIdentifier: string; declare readableIdentifier: string;
@Attribute(DataTypes.STRING) @Attribute(DataTypes.STRING)
declare name: string; declare name: string;