import { BSKY_IMG_FILE_EXTS, BSKY_IMG_SIZE_LIMIT_IN_MB, BSKY_VIDEO_FILE_EXTS, BSKY_VIDEO_MAX_DURATION, CF_IMAGES_FILE_SIZE_LIMIT_IN_MB, CF_IMAGES_MAX_DIMENSION, MAX_LENGTH, MAX_THUMBNAIL_SIZE, R2_FILE_SIZE_LIMIT_IN_MB } from "../limits"; import { APP_NAME } from "../siteinfo"; import { ConstScriptStr } from "../utils/constScriptGen"; import { IncludeDependencyTags, PreloadRules } from "./helpers/includesTags"; import ContentLabelOptions from "./options/contentLabelOptions"; import RetweetOptions from "./options/retweetOptions"; import ScheduleOptions from "./options/scheduleOptions"; export const PreloadPostCreation: PreloadRules[] = [ {type: "script", href: ConstScriptStr }, {type: "script", href: "/dep/dropzone.min.js"}, {type: "style", href: "/dep/dropzone.min.css"}, {type: "style", href: "/css/dropzoneMods.css"}, {type: "style", href: "/dep/tribute.css"}, {type: "script", href: "/dep/tribute.min.js"} ]; export function PostCreation({ctx}: any) { const maxWidth: number|undefined = ctx.env.IMAGE_SETTINGS.max_width; const bskyImageLimits = `Max file size of ${BSKY_IMG_SIZE_LIMIT_IN_MB}MB`; return (

Character Count: 0/{MAX_LENGTH}
Attach Media/Link
Files
Drag or click here to upload files
Note:
  • Images:
    • must be less than {CF_IMAGES_MAX_DIMENSION}x{CF_IMAGES_MAX_DIMENSION} pixels
    • must have a file size smaller than {CF_IMAGES_FILE_SIZE_LIMIT_IN_MB}MB ({APP_NAME} will attempt to compress images to fit BlueSky's requirements) {maxWidth ?
      1. images over {BSKY_IMG_SIZE_LIMIT_IN_MB}MB with a width greater than {maxWidth}px will also be resized in addition to being compressed
      : null}
    • thumbnails will only be shown here for images that are smaller than {MAX_THUMBNAIL_SIZE}MB
    • if an image fails to upload, you'll need to manually adjust the file to fit it properly
  • Videos:
    • must be shorter than {BSKY_VIDEO_MAX_DURATION} minutes
    • must be smaller than {R2_FILE_SIZE_LIMIT_IN_MB}MB
    • will be processed on your PDS after they're posted. This may show a temporary "Video not Found" message for a bit after posting.
Add Record (Quote Post)
Posts must be quotable and all record types must be resolvable (exist) upon the scheduled time. If it does not exist, it will not be attached to your post.
Post Scheduling
Auto-Retweet
); }