new changes
This commit is contained in:
parent
d8d0aaa90e
commit
a1aef7cae5
Binary file not shown.
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 38 KiB |
BIN
db/seed/posts/obsolete.png
Normal file
BIN
db/seed/posts/obsolete.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
6721
package-lock.json
generated
6721
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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";
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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/";
|
||||||
|
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user