memi-board 0.45.1 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- // memi-board 0.23+ Storage Rules (flat schema)
1
+ // memi-board 0.45.1+ Storage Rules (flat schema, ownerUid metadata)
2
2
  // memiBoardPosts/{postId}/attachments|images/...
3
3
  // postId 가 전역 고유이므로 boardId prefix 는 더 이상 필요 없음.
4
4
  // 부모/호스트 Firebase 프로젝트에서 Storage 서비스 계정에
5
5
  // roles/firebaserules.firestoreServiceAgent 역할을 설정해야 한다.
6
- // firestore.exists/get 조회 권한이 없으면 첨부 업로드·파일 삭제가 unauthorized로 실패한다.
6
+ // firestore.exists/get 조회 권한이 없으면 이미지·첨부 업로드·파일 삭제가 unauthorized로 실패한다.
7
7
  // 설정 및 확인 절차: docs/firebase-setup.md의 Storage 규칙의 Firestore 조회 권한 절.
8
8
 
9
9
  rules_version = '2';
@@ -14,11 +14,11 @@ service firebase.storage {
14
14
  return request.auth != null;
15
15
  }
16
16
  // Storage permits at most two distinct Firestore document reads:
17
- // post + user role. Keep the existing global staff Storage permission.
17
+ // post + user role. Scoped staff must not gain global file access.
18
18
  function isBoardStaff() {
19
19
  let userPath = /databases/(default)/documents/memiBoardUsers/$(request.auth.uid);
20
20
  return isSignedIn() && firestore.exists(userPath)
21
- && firestore.get(userPath).data.role in ['admin', 'staff'];
21
+ && firestore.get(userPath).data.role in ['owner', 'admin'];
22
22
  }
23
23
  function canWritePostFile(postId) {
24
24
  return isSignedIn() && (postExists(postId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memi-board",
3
- "version": "0.45.1",
3
+ "version": "0.46.0",
4
4
  "type": "module",
5
5
  "description": "Nuxt 4 + Nuxt UI + VueFire/Firebase 전용 게시판 모듈",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"file":"en-DxkqyZq2.js","names":[],"sources":["../src/i18n/messages/en/attachments.ts","../src/i18n/messages/en/auth.ts","../src/i18n/messages/en/authorMemo.ts","../src/i18n/messages/en/authorMenu.ts","../src/i18n/messages/en/avatarCropModal.ts","../src/i18n/messages/en/boardSettings.ts","../src/i18n/messages/en/boardUsers.ts","../src/i18n/messages/en/commentFeed.ts","../src/i18n/messages/en/commentForm.ts","../src/i18n/messages/en/commentItem.ts","../src/i18n/messages/en/commentList.ts","../src/i18n/messages/en/commentThread.ts","../src/i18n/messages/en/comments.ts","../src/i18n/messages/en/common.ts","../src/i18n/messages/en/detail.ts","../src/i18n/messages/en/editor.ts","../src/i18n/messages/en/footer.ts","../src/i18n/messages/en/likes.ts","../src/i18n/messages/en/list.ts","../src/i18n/messages/en/listViewSwitch.ts","../src/i18n/messages/en/miniComments.ts","../src/i18n/messages/en/miniList.ts","../src/i18n/messages/en/miniPicker.ts","../src/i18n/messages/en/miniPost.ts","../src/i18n/messages/en/moderation.ts","../src/i18n/messages/en/moderationPrompt.ts","../src/i18n/messages/en/moderationStrike.ts","../src/i18n/messages/en/posts.ts","../src/i18n/messages/en/profile.ts","../src/i18n/messages/en/profileEditModal.ts","../src/i18n/messages/en/reportButton.ts","../src/i18n/messages/en/reportList.ts","../src/i18n/messages/en/reports.ts","../src/i18n/messages/en/sectionUtil.ts","../src/i18n/messages/en/sections.ts","../src/i18n/messages/en/seo.ts","../src/i18n/messages/en/settings.ts","../src/i18n/messages/en/shareButton.ts","../src/i18n/messages/en/signIn.ts","../src/i18n/messages/en/storage.ts","../src/i18n/messages/en/swipeHint.ts","../src/i18n/messages/en/userCommentList.ts","../src/i18n/messages/en/userPostList.ts","../src/i18n/messages/en/users.ts","../src/i18n/messages/en/writingAssistant.ts","../src/i18n/messages/en/index.ts"],"sourcesContent":["export default {\n attach: 'Attach files ({count} / {max})',\n maxFiles: 'You can attach up to {max} files.',\n}\n","export default {\n writeRestricted: 'Posting and commenting are temporarily restricted due to repeated content warnings.',\n writeRestrictedUntil: 'Posting and commenting are temporarily restricted due to repeated content warnings. ({until})',\n strikeSuffix: ' (Warning {count}/{threshold})',\n strikeRestrictedUntil: ' You have reached {count} warnings, so posting and commenting are restricted ({until}).',\n strikeRestricted: ' You have reached {count} warnings, so posting and commenting are restricted.',\n notInitialized: '[memi-board] Firebase Auth is not initialized.',\n}\n","export default {\n tooLong: 'Memos can be up to {max} characters.',\n}\n","export default {\n viewProfile: 'View profile',\n viewPosts: 'View posts',\n viewComments: 'View comments',\n memoAriaLabel: 'Note about this author',\n memoTitle: 'Private note',\n memoPlaceholder: 'Jot something down about this author…',\n bad: 'Bad',\n good: 'Good',\n}\n","export default {\n title: 'Crop profile photo',\n description: 'Shown as a square (1:1). Adjust the area to fit.',\n hint: 'Drag to move and zoom · Saved as a {size}×{size} square JPEG',\n confirm: 'Crop and upload',\n}\n","export default {\n signInRequired: 'Please sign in.',\n idAndNameRequired: 'Please enter a board ID and name.',\n deleteIdRequired: 'A board ID is required to delete.',\n nameRequired: 'Please enter a board name.',\n}\n","export default {\n unsupportedRole: 'Unsupported role.',\n roleDescription: {\n admin: 'Manages user roles, board settings, and all content.',\n staff: 'Manages all posts and comments, but can’t change user roles or board settings.',\n user: 'Can write posts and comments, and edit or delete only their own content.',\n },\n}\n","export default {\n empty: 'No comments yet.',\n emptyLiked: 'No liked comments yet.',\n loadFailed: 'Couldn’t load the list: {error}',\n blinded: 'This comment was hidden by an admin.',\n}\n","export default {\n hiddenBoardDenied: 'Only assigned staff can comment on hidden boards.',\n denied: 'You don’t have permission to comment on this board.',\n signInRequired: 'Please sign in.',\n writeRestricted: 'Posting is temporarily restricted due to repeated content warnings.',\n moderationBlocked: 'This contains content that can’t be posted.',\n replyTo: 'Reply to {name}',\n placeholder: 'Write a comment',\n submitReply: 'Reply',\n submit: 'Comment',\n signInToComment: 'Sign in to leave a comment.',\n}\n","export default {\n editRestricted: 'Editing comments is temporarily restricted.',\n moderationBlocked: 'This contains content that can’t be posted.',\n editFailed: 'Couldn’t update the comment.',\n blindConfirm: 'Hiding this comment shows a notice to everyone instead of its text. The original isn’t deleted and you can unhide it later.\\n\\nHide this comment?',\n unblindConfirm: 'Unhiding shows the original comment to everyone again.\\n\\nUnhide this comment?',\n blindFailed: 'Couldn’t change the hidden state.',\n likeFailed: 'Couldn’t process the like.',\n blinded: 'This comment was hidden by an admin.',\n edit: 'Edit comment',\n blind: 'Hide comment',\n unblind: 'Unhide comment',\n delete: 'Delete comment',\n}\n","export default {\n loading: 'Loading comments',\n empty: 'No comments yet.',\n loadMore: 'More comments',\n loadingMore: 'Loading more comments',\n}\n","export default {\n deleteConfirm: 'Delete this comment?',\n deleteFailed: 'Couldn’t delete the comment.',\n hideReplies: 'Hide replies',\n showReplies: '{count} replies',\n loadMoreReplies: 'More replies',\n}\n","export default {\n bodyRequired: 'Please enter a comment.',\n bodyTooLong: 'Comments can be up to {max} characters.',\n replyTargetNotFound: 'The comment you are replying to could not be found.',\n threadNotFound: 'The comment thread could not be found.',\n hasRepliesCannotDelete: 'Comments with replies cannot be deleted right now.',\n}\n","export default {\n action: {\n cancel: 'Cancel',\n save: 'Save',\n saved: 'Saved',\n edit: 'Edit',\n delete: 'Delete',\n confirm: 'OK',\n close: 'Close',\n add: 'Add',\n more: 'More',\n prev: 'Previous',\n next: 'Next',\n retry: 'Retry',\n reply: 'Reply',\n like: 'Like',\n unlike: 'Unlike',\n share: 'Share',\n report: 'Report',\n signIn: 'Sign in',\n signOut: 'Sign out',\n write: 'Write',\n toTop: 'Top',\n },\n label: {\n anonymous: 'Anonymous',\n user: 'User',\n image: 'Image',\n draft: 'Draft',\n loading: 'Loading…',\n },\n role: {\n admin: 'Admin',\n staff: 'Staff',\n user: 'User',\n },\n date: {\n justNow: 'Just now',\n fewSecondsAgo: 'A few seconds ago',\n checking: 'Checking time',\n createdAt: 'Created: {time}',\n updatedAt: 'Updated: {time}',\n },\n}\n","export default {\n deleteConfirm: 'Delete this post? This can’t be undone.',\n notFound: 'Post not found.',\n draftPreview: 'Unpublished preview',\n draftNotice: 'This post isn’t published yet. Only you can see it until you publish.',\n publish: 'Publish',\n backToList: 'Back to list',\n postNav: 'Post navigation',\n list: 'List',\n comments: 'Comments',\n}\n","export default {\n titlePlaceholder: 'Title',\n contentPlaceholder: 'Write something… Type / to open the block menu.',\n imageContentPlaceholder: 'Write something…',\n tagsPlaceholder: 'Type a tag and press Enter',\n skipModeration: 'Skip profanity filter (admin)',\n submitEdit: 'Save changes',\n submitNext: 'Next: Preview',\n apply: 'Apply',\n imageOptimizing: 'Optimizing and uploading image…',\n cover: {\n hint: 'Photos {count}/{max} · Pick a cover · Drag to reorder · Drop or paste files to add',\n imageLink: 'Image link',\n addPhoto: 'Add photos',\n alt: 'Photo {n}',\n representative: 'Cover',\n setRepresentative: 'Set cover',\n setRepresentativeAria: 'Set photo {n} as cover',\n remove: 'Remove photo',\n add: 'Add',\n uploading: 'Uploading…',\n dropOrClick: 'Drop photos or click to add',\n emptyHint: 'Select multiple · Pick a cover after upload · Drag to reorder',\n uploadTitle: 'Upload',\n },\n uploadFailed: 'Upload failed',\n aiAssistant: 'AI writing assistant',\n insertBlock: 'Insert block',\n blockMenu: 'Block menu',\n imageDialog: {\n title: 'Add image',\n chooseFile: 'Choose image from device',\n orLink: 'or image link',\n urlLabel: 'Image URL',\n urlHelp: 'Only HTTPS URLs are allowed. If the image is removed from the source site, it won’t display here either.',\n previewAlt: 'External image preview',\n addLink: 'Add link',\n },\n customDialog: {\n title: 'Rewrite in a custom style',\n label: 'How should it be rewritten?',\n help: 'e.g. in a casual tone / in formal written style / as concise bullet points',\n placeholder: 'In a casual tone',\n },\n aiPreview: {\n title: 'Review AI result',\n currentTitle: 'Current title',\n newTitle: 'New title',\n currentContent: 'Current content',\n appendedContent: 'Content to add',\n before: 'Before',\n after: 'After',\n },\n menu: {\n ai: 'AI',\n aiContinue: 'Continue with AI',\n style: 'Style',\n insert: 'Insert',\n paragraph: 'Paragraph',\n heading1: 'Heading 1',\n heading2: 'Heading 2',\n heading3: 'Heading 3',\n bulletList: 'Bulleted list',\n orderedList: 'Numbered list',\n blockquote: 'Quote',\n codeBlock: 'Code block',\n horizontalRule: 'Divider',\n image: 'Image',\n turnInto: 'Turn into',\n resetFormatting: 'Reset formatting',\n duplicate: 'Duplicate',\n moveUp: 'Move up',\n moveDown: 'Move down',\n delete: 'Delete',\n },\n toolbar: {\n link: 'Link',\n image: 'Image',\n format: 'Format',\n bold: 'Bold',\n italic: 'Italic',\n underline: 'Underline',\n strike: 'Strikethrough',\n title: 'Title',\n heading: 'Heading',\n subheading: 'Subheading',\n body: 'Body',\n mono: 'Monospace',\n bulletList: 'Bulleted list',\n orderedList: 'Numbered list',\n blockquote: 'Block quote',\n codeBlock: 'Code block',\n horizontalRule: 'Divider',\n clearFormatting: 'Clear formatting',\n undo: 'Undo',\n redo: 'Redo',\n },\n ai: {\n proofread: 'Check spelling',\n polish: 'Polish writing',\n continue: 'Continue writing',\n summarize: 'Summarize briefly',\n translateEn: 'Translate to English',\n translateKo: 'Translate to Korean',\n title: 'Generate title from body',\n custom: 'Rewrite in a custom style…',\n failed: 'The AI task failed. Please try again.',\n },\n youtubePrompt: 'Enter a YouTube link.',\n errors: {\n coverMax: 'You can upload up to {max} photos.',\n imageUrlRequired: 'Enter an image URL.',\n imageUrlInvalid: 'Enter a valid image URL.',\n imageUrlHttps: 'Only HTTPS image URLs are allowed.',\n imageUrlCredentials: 'URLs containing login credentials aren’t allowed.',\n imageTimeout: 'The image is taking too long to load.',\n imageNotDisplayable: 'This image can’t be displayed.',\n imageLoadFailed: 'Couldn’t load the image. Check the URL or whether the site allows external linking.',\n editorNotReady: 'The editor isn’t ready. Please try again.',\n imageLinkFailed: 'Couldn’t add the image link.',\n imageOnly: 'Only image files can be uploaded.',\n imageTooLarge: 'Original images must be {mb}MB or smaller.',\n imageUploadFailed: 'Image upload failed.',\n pasteAsFile: 'Paste or drag photos as files into the area above.',\n postNotFound: 'Post not found.',\n loadPermission: 'You don’t have permission to load this post. Check that you’re signed in.',\n loadFailed: 'Couldn’t load the post: {message}',\n editPermission: 'You don’t have permission to edit. Make sure it’s your post and you’re still signed in.',\n titleRequired: 'Enter a title.',\n photoRequired: 'Upload at least one photo.',\n bodyRequired: 'Write some text or attach an image.',\n signInRequired: 'Sign-in required.',\n boardMissing: 'No board was specified.',\n writeRestricted: 'Posting and commenting are temporarily restricted due to repeated content warnings.',\n moderationBlocked: 'This contains content that can’t be posted.',\n },\n hint: {\n reviewing: 'Reviewing content…',\n saving: 'Saving…',\n },\n}\n","export default {\n introduction: 'A board built on Nuxt 4, Vue 3 and TypeScript, using Nuxt UI and Firebase to keep posts and comments flowing smoothly.',\n info: {\n title: 'Board info',\n about: 'About this board',\n history: 'Version history',\n },\n stack: {\n ui: 'Interface & experience',\n data: 'Data & sign-in',\n writing: 'Writing & convenience',\n },\n}\n","export default {\n signInRequired: 'Please sign in.',\n commentNotFound: 'Comment not found.',\n}\n","export default {\n introduction: 'This board is built on Nuxt 4, Vue 3 and TypeScript. Nuxt UI and Tailwind CSS shape a comfortable interface, while Firebase Firestore, Auth, Storage and nuxt-vuefire keep posts and comments flowing smoothly.',\n settings: 'Settings',\n loadFailed: 'Couldn’t load the list: {error}',\n empty: 'No posts yet.',\n photo: 'Photo',\n likeCount: 'Likes {count}',\n info: {\n title: 'Board info',\n about: 'About this board',\n history: 'Version history',\n },\n stack: {\n framework: 'Framework & language',\n ui: 'UI & styling',\n backend: 'Backend & data',\n },\n tech: {\n nuxt: 'Vue-based SSR framework',\n vue: 'Composition API · script setup',\n typescript: 'Type-safe data and components',\n nuxtUi: 'Board, form and modal UI',\n tailwind: 'Responsive · light/dark styles',\n lucide: 'Lightweight, consistent icons',\n dayjs: 'Readable dates and relative times',\n firestore: 'Real-time DB for posts and comments',\n auth: 'Secure sign-in and permissions',\n storage: 'Image and attachment storage',\n vuefire: 'Real-time Nuxt–Firebase binding',\n },\n}\n","export default {\n default: 'Default',\n dense: 'Compact',\n video: 'Video',\n}\n","export default {\n empty: 'No comments yet.',\n blinded: 'This comment was hidden by an admin.',\n}\n","export default {\n empty: 'No posts yet.',\n}\n","export default {\n selectedCount: 'Selected {count} / {max}',\n layoutHint: '2+ show as a carousel, 4 as a grid',\n searchPlaceholder: 'Search titles',\n loading: 'Loading posts…',\n noMore: 'No more posts to pick.',\n}\n","export default {\n empty: 'No posts selected.',\n}\n","export default {\n reviewFailed: 'We could not review your content, so it cannot be posted. Please try again shortly.',\n writeRestricted: 'Posting and commenting are temporarily restricted due to repeated content warnings.',\n}\n","export default {\n localHit: 'Expressions like “{hit}” aren’t allowed. Please rephrase.',\n localGeneric: 'This contains profanity, so it can’t be posted. Please rephrase.',\n categoryBlocked: 'This contains {category}, so it can’t be posted. Please edit it.',\n genericBlocked: 'This contains content that can’t be posted. Please edit it.',\n categories: {\n abuse: 'profanity or insults',\n spam: 'spam or advertising',\n adult: 'sexual or adult content',\n violence: 'violence or threats',\n other: 'inappropriate content',\n },\n}\n","export default {\n liftSoon: 'lifts soon',\n liftInHours: 'lifts in about {hours}h',\n liftInDays: 'lifts in about {days}d',\n liftInDaysHours: 'lifts in about {days}d {hours}h',\n}\n","export default {\n boardIdRequired: '[memi-board] boardId is required.',\n photoRequired: 'Please add a photo.',\n bodyRequired: 'Please enter some text or attach an image.',\n titleRequired: 'Please enter a title.',\n}\n","export default {\n notFound: 'User not found.',\n noName: 'No name',\n joined: 'Joined {time}',\n lastVisit: 'Last seen {time}',\n}\n","export default {\n imageOnly: 'Only image files can be selected.',\n nameRequired: 'Please enter a name.',\n saveFailed: 'Couldn’t save the profile.',\n title: 'Edit profile',\n changePhoto: 'Change photo',\n name: 'Name',\n bio: 'Bio',\n bioPlaceholder: 'Tell people about yourself',\n}\n","export default {\n failed: 'Couldn’t submit the report.',\n reported: 'Reported',\n title: 'Report post',\n done: 'Report received. Staff will review it.',\n reason: 'Reason',\n detailPlaceholder: 'Details (optional)',\n submit: 'Report',\n}\n","export default {\n staffOnly: 'Only staff can view reports.',\n loadFailed: 'Couldn’t load the list: {error}',\n empty: 'No pending reports.',\n untitled: 'Untitled post',\n author: 'by {name}',\n dismiss: 'Dismiss',\n confirm: 'Resolve',\n}\n","export default {\n reason: {\n spam: 'Spam / advertising',\n abuse: 'Abuse / hate / harassment',\n adult: 'Sexual content',\n illegal: 'Illegal content',\n other: 'Other',\n },\n fallbackLabel: 'Report',\n signInRequired: 'Please sign in.',\n cannotReportOwn: 'You cannot report your own post.',\n reasonRequired: 'Please select a reason.',\n detailTooLong: 'Details can be up to {max} characters.',\n}\n","export default {\n kind: {\n list: 'Post list',\n post: 'Posts',\n comments: 'Comments',\n },\n sort: {\n latest: 'Latest',\n likes: 'Most liked',\n },\n untitledPost: 'Post',\n view: {\n media: 'Media',\n list: 'List',\n },\n}\n","export default {\n defaultTitle: 'Section {n}',\n}\n","export default {\n allCategory: 'All',\n boardDescription: '{name} board',\n allDescription: 'Board — announcements and community news.',\n postFallbackTitle: 'Post | {site}',\n postFallbackDescription: 'Board',\n photo: 'Photo',\n postDescriptionFallback: 'Board post',\n listTitle: '{name} | {site}',\n listTitleAll: 'Board | {site}',\n listDescription: '{name} — catch up on the latest posts.',\n listDescriptionAll: 'Board — announcements and stories.',\n}\n","export default {\n loading: 'Loading settings…',\n noAccess: 'You don’t have access',\n notFound: {\n title: 'Board not found',\n checkAddress: 'Please check the address.',\n checkBoardAddress: 'Please check the board address.',\n },\n newBoard: {\n title: 'This board doesn’t exist yet',\n description: 'Fill in the details below and save to create it with this ID.',\n },\n noLabel: 'No label',\n option: {\n default: 'Standard',\n },\n id: {\n label: 'Category ID',\n help: 'Used in the URL and data',\n },\n writeRole: {\n label: 'Who can post',\n help: 'Minimum role required to post in this category',\n helpShort: 'Minimum role required to post',\n options: {\n user: 'Users and up',\n staff: 'Staff and up',\n admin: 'Admins only',\n },\n },\n commentWriteRole: {\n label: 'Who can comment',\n help: 'Minimum role required to comment in this category',\n helpShort: 'Minimum role required to comment',\n hiddenHelp: 'Comments on hidden boards don’t appear in the public feed, and only assigned staff can write them',\n hiddenFixed: 'Assigned staff only (fixed for hidden boards)',\n },\n staff: {\n label: 'Assigned staff',\n help: 'Only the selected staff can configure and manage this board. Leave empty for admins only',\n placeholder: 'Admins only (no staff assigned)',\n },\n label: {\n label: 'Display name',\n help: 'The name users see',\n },\n description: {\n label: 'Description',\n help: 'Shown at the top of the board and elsewhere',\n placeholder: 'A short description of this board (optional)',\n },\n visibility: {\n pending: 'Visibility change is incomplete. Save the same setting again to resume.',\n label: 'Visibility',\n help: 'Hidden boards don’t appear in the all-boards filter, and posts can only be read by admins, assigned staff, and their authors. Only assigned staff can comment',\n options: {\n public: { label: 'Visible', description: 'Shown in the full list and filters' },\n hidden: { label: 'Hidden', description: 'Journal or private. Only assigned staff can comment' },\n },\n },\n listView: {\n label: 'List view',\n help: 'How the post list is displayed',\n options: {\n dense: 'Compact',\n video: 'Video',\n },\n },\n editorType: {\n label: 'Post form',\n help: 'How posts are written',\n options: {\n default: 'Write a title and body',\n image: 'Add multiple photos and a cover photo',\n },\n },\n locale: {\n label: 'Board language',\n help: 'Leave empty to follow the site language. If set, this board always appears in that language.',\n auto: 'Auto (follow site language)',\n },\n action: {\n moveDown: 'Down',\n goToBoard: 'Go to board',\n deleteBoard: 'Delete board',\n create: 'Create',\n },\n newCategoryPlaceholder: 'New category name',\n deleteConfirm: 'Delete the “{label}” board?\\n\\nAll posts, comments, replies, inline images, and attachments on this board will be permanently deleted. This can’t be undone.',\n savedCategory: 'Saved the “{label}” category.',\n savedSettings: 'Board settings saved.',\n created: 'Board created.',\n error: {\n orderFailed: 'Couldn’t save the category order.',\n deleteFailed: 'Couldn’t delete the board and its data.',\n saveFailed: 'Couldn’t save the board settings.',\n deleteAllFailed: 'Couldn’t delete the board data.',\n },\n danger: {\n title: 'Danger zone',\n description: 'Permanently deletes all posts, comments, attachments, and category settings. Board users and admin roles are kept.',\n confirmLabel: 'Type “{phrase}” to confirm',\n phrase: 'delete board data',\n button: 'Delete all data',\n done: 'All board data has been deleted.',\n },\n}\n","export default {\n copied: 'Link copied',\n}\n","export default {\n withGoogle: 'Sign in with Google',\n withApple: 'Sign in with Apple',\n or: 'or',\n name: 'Name',\n email: 'Email',\n password: 'Password',\n signUp: 'Sign up',\n toSignUp: 'Don’t have an account? Sign up',\n toSignIn: 'Already have an account? Sign in',\n}\n","export default {\n tooLargeAfterCompress: 'The image is still larger than 5MB after compression. Please choose a smaller image.',\n sourceTooLarge: 'The original image must be {max}MB or smaller.',\n heicUnsupported: 'HEIC photos cannot be uploaded directly. Pick it from the Photos app or convert it to JPG, PNG, or WebP.',\n cannotOptimize: 'This image format cannot be optimized in the browser. Please convert it to JPG, PNG, or WebP.',\n imageOnly: 'Only image files can be uploaded.',\n canvasUnavailable: 'Canvas is not available',\n compressFailed: 'Compression failed',\n loadFailed: 'Failed to load image',\n}\n","export default {\n title: 'Try swiping left or right',\n description: 'Swipe left for the next post, right for the previous one.',\n}\n","export default {\n loadFailed: 'Couldn’t load the list: {error}',\n empty: 'No comments yet.',\n blinded: 'This comment was hidden by an admin.',\n likes: '{count} likes',\n}\n","export default {\n loadFailed: 'Couldn’t load the list: {error}',\n empty: 'No posts yet.',\n}\n","export default {\n changeRoleFailed: 'Couldn’t change the role.',\n loading: 'Loading users…',\n noPermission: {\n title: 'No permission',\n description: 'Only board admins can manage user roles.',\n },\n empty: 'No users have signed in to the board yet.',\n noName: 'No name',\n moderationWarnings: '{count} content warnings',\n}\n","export default {\n loginRequired: 'Sign in to use the AI writing assistant.',\n userMissing: 'Couldn’t verify your user info. Please try again.',\n dailyLimit: 'The AI writing assistant can be used up to {limit} times a day. Please try again in about {hours} hour(s).',\n contentRequired: 'Enter some content for the AI to work on first.',\n customRequired: 'Enter an instruction for how to rewrite it.',\n emptyResult: 'The AI couldn’t produce a result. Please try again.',\n failed: 'The AI task failed. Please try again.',\n actions: {\n proofread: 'Check spelling',\n polish: 'Polish sentences',\n continue: 'Continue writing',\n summarize: 'Summarize',\n translateEn: 'Translate to English',\n translateKo: 'Translate to Korean',\n title: 'Generate title from body',\n custom: 'Rewrite in a custom style…',\n },\n}\n","// 자동 생성 — scripts/gen-i18n-index.mjs\nimport attachments from './attachments'\nimport auth from './auth'\nimport authorMemo from './authorMemo'\nimport authorMenu from './authorMenu'\nimport avatarCropModal from './avatarCropModal'\nimport boardSettings from './boardSettings'\nimport boardUsers from './boardUsers'\nimport commentFeed from './commentFeed'\nimport commentForm from './commentForm'\nimport commentItem from './commentItem'\nimport commentList from './commentList'\nimport commentThread from './commentThread'\nimport comments from './comments'\nimport common from './common'\nimport detail from './detail'\nimport editor from './editor'\nimport footer from './footer'\nimport likes from './likes'\nimport list from './list'\nimport listViewSwitch from './listViewSwitch'\nimport miniComments from './miniComments'\nimport miniList from './miniList'\nimport miniPicker from './miniPicker'\nimport miniPost from './miniPost'\nimport moderation from './moderation'\nimport moderationPrompt from './moderationPrompt'\nimport moderationStrike from './moderationStrike'\nimport posts from './posts'\nimport profile from './profile'\nimport profileEditModal from './profileEditModal'\nimport reportButton from './reportButton'\nimport reportList from './reportList'\nimport reports from './reports'\nimport sectionUtil from './sectionUtil'\nimport sections from './sections'\nimport seo from './seo'\nimport settings from './settings'\nimport shareButton from './shareButton'\nimport signIn from './signIn'\nimport storage from './storage'\nimport swipeHint from './swipeHint'\nimport userCommentList from './userCommentList'\nimport userPostList from './userPostList'\nimport users from './users'\nimport writingAssistant from './writingAssistant'\n\nexport default {\n attachments,\n auth,\n authorMemo,\n authorMenu,\n avatarCropModal,\n boardSettings,\n boardUsers,\n commentFeed,\n commentForm,\n commentItem,\n commentList,\n commentThread,\n comments,\n common,\n detail,\n editor,\n footer,\n likes,\n list,\n listViewSwitch,\n miniComments,\n miniList,\n miniPicker,\n miniPost,\n moderation,\n moderationPrompt,\n moderationStrike,\n posts,\n profile,\n profileEditModal,\n reportButton,\n reportList,\n reports,\n sectionUtil,\n sections,\n seo,\n settings,\n shareButton,\n signIn,\n storage,\n swipeHint,\n userCommentList,\n userPostList,\n users,\n writingAssistant,\n}\n"],"mappings":";;A6C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GACT;EACF;EACA,QAAQ;GACN,OAAO;GACP,MAAM;GACN,MAAM;EACR;EACA,QAAQ;GACN,UAAU;GACV,WAAW;GACX,aAAa;GACb,QAAQ;EACV;EACA,wBAAwB;EACxB,eAAe;EACf,eAAe;EACf,eAAe;EACf,SAAS;EACT,OAAO;GACL,aAAa;GACb,cAAc;GACd,YAAY;GACZ,iBAAiB;EACnB;EACA,QAAQ;GACN,OAAO;GACP,aAAa;GACb,cAAc;GACd,QAAQ;GACR,QAAQ;GACR,MAAM;EACR;CSrBA;CACA,aAAA,ERpFA,QAAQ,cQoFR;CACA,QAAA;EPrFA,YAAY;EACZ,WAAW;EACX,IAAI;EACJ,MAAM;EACN,OAAO;EACP,UAAU;EACV,QAAQ;EACR,UAAU;EACV,UAAU;CO6EV;CACA,SAAA;ENtFA,uBAAuB;EACvB,gBAAgB;EAChB,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,mBAAmB;EACnB,gBAAgB;EAChB,YAAY;CM+EZ;CACA,WAAA;ELvFA,OAAO;EACP,aAAa;CKsFb;CACA,iBAAA;EJxFA,YAAY;EACZ,OAAO;EACP,SAAS;EACT,OAAO;CIqFP;CACA,cAAA;EHzFA,YAAY;EACZ,OAAO;CGwFP;CACA,OAAA;EF1FA,kBAAkB;EAClB,SAAS;EACT,cAAc;GACZ,OAAO;GACP,aAAa;EACf;EACA,OAAO;EACP,QAAQ;EACR,oBAAoB;CEkFpB;CACA,kBAAA;ED3FA,eAAe;EACf,aAAa;EACb,YAAY;EACZ,iBAAiB;EACjB,gBAAgB;EAChB,aAAa;EACb,QAAQ;EACR,SAAS;GACP,WAAW;GACX,QAAQ;GACR,UAAU;GACV,WAAW;GACX,aAAa;GACb,aAAa;GACb,OAAO;GACP,QAAQ;EACV;CC2EA;AACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"slugify-BuOMFLxN.js","names":[],"sources":["../src/utils/boardPaths.ts","../src/config.ts","../src/i18n/locales.ts","../src/i18n/messages/ko/attachments.ts","../src/i18n/messages/ko/auth.ts","../src/i18n/messages/ko/authorMemo.ts","../src/i18n/messages/ko/authorMenu.ts","../src/i18n/messages/ko/avatarCropModal.ts","../src/i18n/messages/ko/boardSettings.ts","../src/i18n/messages/ko/boardUsers.ts","../src/i18n/messages/ko/commentFeed.ts","../src/i18n/messages/ko/commentForm.ts","../src/i18n/messages/ko/commentItem.ts","../src/i18n/messages/ko/commentList.ts","../src/i18n/messages/ko/commentThread.ts","../src/i18n/messages/ko/comments.ts","../src/i18n/messages/ko/common.ts","../src/i18n/messages/ko/detail.ts","../src/i18n/messages/ko/editor.ts","../src/i18n/messages/ko/footer.ts","../src/i18n/messages/ko/likes.ts","../src/i18n/messages/ko/list.ts","../src/i18n/messages/ko/listViewSwitch.ts","../src/i18n/messages/ko/miniComments.ts","../src/i18n/messages/ko/miniList.ts","../src/i18n/messages/ko/miniPicker.ts","../src/i18n/messages/ko/miniPost.ts","../src/i18n/messages/ko/moderation.ts","../src/i18n/messages/ko/moderationPrompt.ts","../src/i18n/messages/ko/moderationStrike.ts","../src/i18n/messages/ko/posts.ts","../src/i18n/messages/ko/profile.ts","../src/i18n/messages/ko/profileEditModal.ts","../src/i18n/messages/ko/reportButton.ts","../src/i18n/messages/ko/reportList.ts","../src/i18n/messages/ko/reports.ts","../src/i18n/messages/ko/sectionUtil.ts","../src/i18n/messages/ko/sections.ts","../src/i18n/messages/ko/seo.ts","../src/i18n/messages/ko/settings.ts","../src/i18n/messages/ko/shareButton.ts","../src/i18n/messages/ko/signIn.ts","../src/i18n/messages/ko/storage.ts","../src/i18n/messages/ko/swipeHint.ts","../src/i18n/messages/ko/userCommentList.ts","../src/i18n/messages/ko/userPostList.ts","../src/i18n/messages/ko/users.ts","../src/i18n/messages/ko/writingAssistant.ts","../src/i18n/messages/ko/index.ts","../src/i18n/translate.ts","../src/utils/formatDate.ts","../src/i18n/useMemiBoardI18n.ts","../src/utils/slugify.ts"],"sourcesContent":["/**\n * Firestore / Storage 경로\n *\n * ```\n * memiBoardUsers/{uid}\n * memiBoardSettings/{boardId} // 보드 설정 (구 memiBoards/{id} stub + settings/config 통합)\n * memiBoardPosts/{postId} // boardId 는 문서 필드\n * memiBoardPosts/{postId}/body/main\n * memiBoardComments/{commentId} // postId, boardId 는 문서 필드\n * memiBoardLikes/{targetId}_{uid} // 글: postId_uid / 댓글: commentId_uid\n * memiBoardReports/{postId}_{uid} // 글 신고. 유저당 글당 1건\n * ```\n *\n * Storage: `memiBoardPosts/{postId}/...` (postId 가 전역 고유이므로 boardId 불필요)\n *\n * 카테고리 개념 없음 — 예전 category id 가 곧 boardId. boardId/postId 는 경로가\n * 아니라 문서 필드이므로, 보드/글 단위로 좁혀야 하는 쿼리는 항상 where 필터로\n * 스코핑한다 (컬렉션 자체는 항상 최상위 flat 컬렉션).\n */\nimport {\n collection,\n doc,\n type CollectionReference,\n type DocumentReference,\n type Firestore,\n} from 'firebase/firestore'\n\nexport const DEFAULT_POSTS_COLLECTION = 'memiBoardPosts'\nexport const DEFAULT_COMMENTS_COLLECTION = 'memiBoardComments'\nexport const DEFAULT_LIKES_COLLECTION = 'memiBoardLikes'\nexport const DEFAULT_REPORTS_COLLECTION = 'memiBoardReports'\nexport const DEFAULT_SETTINGS_COLLECTION = 'memiBoardSettings'\nexport const DEFAULT_USERS_COLLECTION = 'memiBoardUsers'\n\nexport interface BoardPathConfig {\n postsCollection: string\n commentsCollection: string\n likesCollection: string\n reportsCollection: string\n settingsCollection: string\n usersCollection: string\n}\n\nexport function resolveBoardPathConfig(input: {\n postsCollection?: string\n commentsCollection?: string\n likesCollection?: string\n reportsCollection?: string\n settingsCollection?: string\n usersCollection?: string\n}): BoardPathConfig {\n return {\n postsCollection: input.postsCollection?.trim() || DEFAULT_POSTS_COLLECTION,\n commentsCollection: input.commentsCollection?.trim() || DEFAULT_COMMENTS_COLLECTION,\n likesCollection: input.likesCollection?.trim() || DEFAULT_LIKES_COLLECTION,\n reportsCollection: input.reportsCollection?.trim() || DEFAULT_REPORTS_COLLECTION,\n settingsCollection: input.settingsCollection?.trim() || DEFAULT_SETTINGS_COLLECTION,\n usersCollection: input.usersCollection?.trim() || DEFAULT_USERS_COLLECTION,\n }\n}\n\n/** 보드 설정 목록/문서 — 구 memiBoards/{boardId} stub + settings/config 통합 */\nexport function settingsCol(db: Firestore, cfg: BoardPathConfig): CollectionReference {\n return collection(db, cfg.settingsCollection)\n}\n\nexport function settingsDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n boardId: string,\n): DocumentReference {\n return doc(db, cfg.settingsCollection, boardId)\n}\n\nexport function postsCol(db: Firestore, cfg: BoardPathConfig): CollectionReference {\n return collection(db, cfg.postsCollection)\n}\n\nexport function postDoc(db: Firestore, cfg: BoardPathConfig, postId: string): DocumentReference {\n return doc(db, cfg.postsCollection, postId)\n}\n\nexport function postBodyDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n postId: string,\n): DocumentReference {\n return doc(db, cfg.postsCollection, postId, 'body', 'main')\n}\n\nexport function commentsCol(db: Firestore, cfg: BoardPathConfig): CollectionReference {\n return collection(db, cfg.commentsCollection)\n}\n\nexport function commentDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n commentId: string,\n): DocumentReference {\n return doc(db, cfg.commentsCollection, commentId)\n}\n\nexport function likesCol(db: Firestore, cfg: BoardPathConfig): CollectionReference {\n return collection(db, cfg.likesCollection)\n}\n\n/** 좋아요 문서ID 관례: `${targetId}_{uid}` — targetId 는 postId 또는 commentId. 토글은 create-or-delete */\nexport function likeDocId(targetId: string, uid: string): string {\n return `${targetId}_${uid}`\n}\n\nexport function likeDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n targetId: string,\n uid: string,\n): DocumentReference {\n return doc(db, cfg.likesCollection, likeDocId(targetId, uid))\n}\n\nexport function reportsCol(db: Firestore, cfg: BoardPathConfig): CollectionReference {\n return collection(db, cfg.reportsCollection)\n}\n\n/** 신고 문서ID: `${postId}_{uid}` — 유저당 글당 1건 */\nexport function reportDocId(postId: string, uid: string): string {\n return `${postId}_${uid}`\n}\n\nexport function reportDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n postId: string,\n uid: string,\n): DocumentReference {\n return doc(db, cfg.reportsCollection, reportDocId(postId, uid))\n}\n\nexport function boardUsersCol(db: Firestore, cfg: BoardPathConfig): CollectionReference {\n return collection(db, cfg.usersCollection)\n}\n\nexport function boardUserDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n uid: string,\n): DocumentReference {\n return doc(db, cfg.usersCollection, uid)\n}\n\n/** 이메일만 담는 비공개 문서 — memiBoardUsers/{uid}는 공개 프로필이라 이메일만 분리한다. */\nexport function boardUserPrivateDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n uid: string,\n): DocumentReference {\n return doc(db, cfg.usersCollection, uid, 'private', 'info')\n}\n\n/** 본인만 보는 작성자 메모 — 문서 ID 자체가 targetUid라 대상당 메모가 하나로 고정된다. */\nexport function authorMemoDoc(\n db: Firestore,\n cfg: BoardPathConfig,\n viewerUid: string,\n targetUid: string,\n): DocumentReference {\n return doc(db, cfg.usersCollection, viewerUid, 'memos', targetUid)\n}\n\n/** postId 가 전역 고유이므로 boardId 프리픽스 불필요 */\nexport function postStorageFolder(cfg: BoardPathConfig, postId: string): string {\n return `${cfg.postsCollection}/${postId}`\n}\n\nexport function boardSsrKey(cfg: BoardPathConfig, suffix: string): string {\n return `${cfg.postsCollection}/${cfg.usersCollection}/${suffix}`\n}\n","import { reactive } from 'vue'\nimport {\n DEFAULT_COMMENTS_COLLECTION,\n DEFAULT_LIKES_COLLECTION,\n DEFAULT_REPORTS_COLLECTION,\n DEFAULT_POSTS_COLLECTION,\n DEFAULT_SETTINGS_COLLECTION,\n DEFAULT_USERS_COLLECTION,\n resolveBoardPathConfig,\n type BoardPathConfig,\n} from './utils/boardPaths'\n\nexport interface MemiBoardAuthOptions {\n providers?: Array<'google' | 'apple' | 'emailPassword'>\n}\n\nexport interface MemiBoardModerationOptions {\n enabled?: boolean\n model?: string\n localBlocklist?: string[]\n onError?: 'allow' | 'block'\n moderateImages?: boolean\n useLimitedUseAppCheckTokens?: boolean\n blockBanThreshold?: number\n blockBanDecayMs?: number\n}\n\nexport interface MemiBoardSeoOptions {\n enabled?: boolean\n siteName?: string\n siteUrl?: string\n defaultOgImage?: string\n /**\n * 호스트 게시판 base path (trailing slash 없음). 기본 '/board'\n * canonical: {base}, {base}/{boardId}, {base}/{boardId}/{slug}\n */\n basePath?: string\n}\n\nexport interface MemiBoardConfig {\n /** 글 컬렉션. 기본 `memiBoardPosts` */\n postsCollection: string\n /** 댓글 컬렉션. 기본 `memiBoardComments` */\n commentsCollection: string\n /** 좋아요 컬렉션. 기본 `memiBoardLikes` */\n likesCollection: string\n /** 신고 컬렉션. 기본 `memiBoardReports` */\n reportsCollection: string\n /** 보드 설정 컬렉션. 기본 `memiBoardSettings` */\n settingsCollection: string\n /** 역할 문서 컬렉션. 기본 `memiBoardUsers` */\n usersCollection: string\n auth: MemiBoardAuthOptions\n moderation: MemiBoardModerationOptions\n seo: MemiBoardSeoOptions\n /**\n * 기본 언어. 호스트에 @nuxtjs/i18n 이 있으면 그 언어를 따르고,\n * 보드 설정에서 언어를 고르면 그 보드는 그 언어로 고정된다. 기본 'ko'.\n */\n locale?: string\n}\n\nconst GLOBAL_KEY = '__MEMI_BOARD_CONFIG__' as const\n\nfunction getSharedConfig(): MemiBoardConfig {\n const g = globalThis as typeof globalThis & {\n [GLOBAL_KEY]?: MemiBoardConfig\n }\n if (!g[GLOBAL_KEY]) {\n g[GLOBAL_KEY] = reactive<MemiBoardConfig>({\n postsCollection: DEFAULT_POSTS_COLLECTION,\n commentsCollection: DEFAULT_COMMENTS_COLLECTION,\n likesCollection: DEFAULT_LIKES_COLLECTION,\n reportsCollection: DEFAULT_REPORTS_COLLECTION,\n settingsCollection: DEFAULT_SETTINGS_COLLECTION,\n usersCollection: DEFAULT_USERS_COLLECTION,\n auth: { providers: ['google', 'apple'] },\n moderation: {\n enabled: true,\n model: 'gemini-3.5-flash-lite',\n onError: 'allow',\n moderateImages: false,\n localBlocklist: [],\n blockBanThreshold: 10,\n blockBanDecayMs: 24 * 60 * 60 * 1000,\n },\n seo: {\n enabled: true,\n siteName: 'Board',\n siteUrl: '',\n defaultOgImage: '',\n basePath: '/board',\n },\n })\n }\n return g[GLOBAL_KEY]\n}\n\nexport function configureMemiBoard(options: Partial<MemiBoardConfig>): void {\n const config = getSharedConfig()\n if (options.postsCollection != null && options.postsCollection !== '') {\n config.postsCollection = options.postsCollection.trim()\n }\n if (options.commentsCollection != null && options.commentsCollection !== '') {\n config.commentsCollection = options.commentsCollection.trim()\n }\n if (options.likesCollection != null && options.likesCollection !== '') {\n config.likesCollection = options.likesCollection.trim()\n }\n if (options.reportsCollection != null && options.reportsCollection !== '') {\n config.reportsCollection = options.reportsCollection.trim()\n }\n if (options.settingsCollection != null && options.settingsCollection !== '') {\n config.settingsCollection = options.settingsCollection.trim()\n }\n if (options.usersCollection != null && options.usersCollection !== '') {\n config.usersCollection = options.usersCollection.trim()\n }\n if (options.auth) Object.assign(config.auth, options.auth)\n if (options.moderation) Object.assign(config.moderation, options.moderation)\n if (options.seo) Object.assign(config.seo, options.seo)\n if (options.locale) config.locale = options.locale\n}\n\nexport function useMemiBoardConfig(): MemiBoardConfig {\n return getSharedConfig()\n}\n\nexport function useBoardPathConfig(): BoardPathConfig {\n return resolveBoardPathConfig(useMemiBoardConfig())\n}\n","/** 게시판 UI 지원 언어. 코드는 @nuxtjs/i18n 호스트의 locale code 와 맞춘다. */\nexport const MEMI_BOARD_LOCALES = [\n { code: 'ko', name: '한국어', intl: 'ko-KR', dir: 'ltr' },\n { code: 'en', name: 'English', intl: 'en-US', dir: 'ltr' },\n { code: 'ja', name: '日本語', intl: 'ja-JP', dir: 'ltr' },\n { code: 'de', name: 'Deutsch', intl: 'de-DE', dir: 'ltr' },\n { code: 'fr', name: 'Français', intl: 'fr-FR', dir: 'ltr' },\n { code: 'es', name: 'Español', intl: 'es-419', dir: 'ltr' },\n { code: 'pt', name: 'Português', intl: 'pt-BR', dir: 'ltr' },\n { code: 'zh', name: '中文', intl: 'zh-CN', dir: 'ltr' },\n { code: 'ar', name: 'العربية', intl: 'ar', dir: 'rtl' },\n { code: 'id', name: 'Indonesia', intl: 'id-ID', dir: 'ltr' },\n] as const\n\nexport type MemiBoardLocale = typeof MEMI_BOARD_LOCALES[number]['code']\nexport type MemiBoardLocaleInfo = typeof MEMI_BOARD_LOCALES[number]\n\nexport const DEFAULT_MEMI_BOARD_LOCALE: MemiBoardLocale = 'ko'\n/** 번역이 빠진 키(긴 안내문 등)를 채우는 언어. ko 는 원문이라 모든 키가 있다. */\nexport const FALLBACK_MEMI_BOARD_LOCALE: MemiBoardLocale = 'en'\n\nconst CODES = new Set<string>(MEMI_BOARD_LOCALES.map(item => item.code))\n\n/** 'en-US', 'pt_BR', 'zh-Hans' 같은 값을 지원 언어 코드로 맞춘다. 지원하지 않으면 undefined. */\nexport function normalizeMemiBoardLocale(value: unknown): MemiBoardLocale | undefined {\n if (typeof value !== 'string') return undefined\n const code = value.trim().toLowerCase().split(/[-_]/)[0]\n return code && CODES.has(code) ? code as MemiBoardLocale : undefined\n}\n\nexport function memiBoardLocaleInfo(locale: MemiBoardLocale): MemiBoardLocaleInfo {\n return MEMI_BOARD_LOCALES.find(item => item.code === locale) ?? MEMI_BOARD_LOCALES[0]\n}\n","export default {\n attach: '파일 첨부 ({count} / {max})',\n maxFiles: '최대 {max}개까지 첨부할 수 있습니다.',\n}\n","export default {\n writeRestricted: '콘텐츠 경고가 누적되어 글·댓글 작성이 잠시 제한됐어요.',\n writeRestrictedUntil: '콘텐츠 경고가 누적되어 글·댓글 작성이 잠시 제한됐어요. ({until})',\n strikeSuffix: ' (경고 {count}/{threshold})',\n strikeRestrictedUntil: ' 경고 {count}회가 되어 글·댓글 작성이 제한됩니다 ({until}).',\n strikeRestricted: ' 경고 {count}회가 되어 글·댓글 작성이 제한됩니다.',\n notInitialized: '[memi-board] Firebase Auth가 초기화되지 않았습니다.',\n}\n","export default {\n tooLong: '메모는 {max}자까지 작성할 수 있습니다.',\n}\n","export default {\n viewProfile: '프로필 보기',\n viewPosts: '작성글 보기',\n viewComments: '작성한 댓글 보기',\n memoAriaLabel: '이 작성자에 대한 메모',\n memoTitle: '나만 보는 메모',\n memoPlaceholder: '이 작성자에 대해 적어두기…',\n bad: '나쁨',\n good: '좋음',\n}\n","export default {\n title: '프로필 사진 자르기',\n description: '정사각형(1:1)으로 보여집니다. 영역을 맞춰 주세요.',\n hint: '드래그로 위치·확대 조절 · {size}×{size} 정사각 JPEG로 저장됩니다',\n confirm: '자르고 업로드',\n}\n","export default {\n signInRequired: '로그인이 필요합니다.',\n idAndNameRequired: '보드 ID와 이름을 입력해 주세요.',\n deleteIdRequired: '삭제할 게시판 ID가 필요합니다.',\n nameRequired: '보드 이름을 입력해 주세요.',\n}\n","export default {\n unsupportedRole: '지원하지 않는 역할입니다.',\n roleDescription: {\n admin: '사용자 역할, 게시판 설정과 모든 콘텐츠를 관리합니다.',\n staff: '모든 게시글과 댓글을 관리하지만 사용자 역할과 게시판 설정은 바꿀 수 없습니다.',\n user: '글과 댓글을 작성하고 본인이 작성한 콘텐츠만 수정·삭제할 수 있습니다.',\n },\n}\n","export default {\n empty: '아직 댓글이 없습니다.',\n emptyLiked: '좋아요를 받은 댓글이 아직 없습니다.',\n loadFailed: '목록을 불러오지 못했습니다: {error}',\n blinded: '관리자에 의해 블라인드된 댓글입니다.',\n}\n","export default {\n hiddenBoardDenied: '숨김 게시판에는 담당 스태프만 댓글을 남길 수 있습니다.',\n denied: '이 게시판에는 댓글쓰기 권한이 없습니다.',\n signInRequired: '로그인이 필요합니다.',\n writeRestricted: '콘텐츠 경고가 누적되어 글·댓글 작성이 잠시 제한됐어요.',\n moderationBlocked: '작성할 수 없는 내용이 포함되어 있습니다.',\n replyTo: '{name}님에게 답글',\n placeholder: '댓글을 입력하세요',\n submitReply: '답글 작성',\n submit: '댓글 작성',\n signInToComment: '댓글을 작성하려면 로그인이 필요합니다.',\n}\n","export default {\n editRestricted: '댓글 수정이 잠시 제한됐어요.',\n moderationBlocked: '작성할 수 없는 내용이 포함되어 있습니다.',\n editFailed: '댓글을 수정하지 못했습니다.',\n blindConfirm: '이 댓글을 블라인드하면 모든 사용자에게 본문 대신 블라인드 안내가 표시됩니다. 원문은 삭제되지 않으며 나중에 다시 해제할 수 있습니다.\\n\\n블라인드하시겠습니까?',\n unblindConfirm: '블라인드를 해제하면 댓글 원문이 모든 사용자에게 다시 표시됩니다.\\n\\n블라인드를 해제하시겠습니까?',\n blindFailed: '블라인드 상태를 변경하지 못했습니다.',\n likeFailed: '좋아요를 처리하지 못했습니다.',\n blinded: '관리자에 의해 블라인드된 댓글입니다.',\n edit: '댓글 수정',\n blind: '댓글 블라인드',\n unblind: '댓글 블라인드 해제',\n delete: '댓글 삭제',\n}\n","export default {\n loading: '댓글을 불러오고 있습니다',\n empty: '아직 댓글이 없습니다.',\n loadMore: '댓글 더보기',\n loadingMore: '댓글을 더 불러오고 있습니다',\n}\n","export default {\n deleteConfirm: '이 댓글을 삭제하시겠습니까?',\n deleteFailed: '댓글을 삭제하지 못했습니다.',\n hideReplies: '답글 숨기기',\n showReplies: '답글 {count}개',\n loadMoreReplies: '답글 더보기',\n}\n","export default {\n bodyRequired: '댓글 내용을 입력해 주세요.',\n bodyTooLong: '댓글은 {max}자까지 작성할 수 있습니다.',\n replyTargetNotFound: '답글 대상 댓글을 찾을 수 없습니다.',\n threadNotFound: '댓글 스레드를 찾을 수 없습니다.',\n hasRepliesCannotDelete: '답글이 있는 댓글은 현재 삭제할 수 없습니다.',\n}\n","/** 여러 화면이 함께 쓰는 짧은 문구. */\nexport default {\n action: {\n cancel: '취소',\n save: '저장',\n saved: '저장됨',\n edit: '수정',\n delete: '삭제',\n confirm: '확인',\n close: '닫기',\n add: '추가',\n more: '더 보기',\n prev: '이전',\n next: '다음',\n retry: '다시 시도',\n reply: '답글',\n like: '좋아요',\n unlike: '좋아요 취소',\n share: '공유',\n report: '신고',\n signIn: '로그인',\n signOut: '로그아웃',\n write: '글쓰기',\n toTop: '위로',\n },\n label: {\n anonymous: '익명',\n user: '사용자',\n image: '이미지',\n draft: '초안',\n loading: '불러오는 중…',\n },\n role: {\n admin: '관리자',\n staff: '스태프',\n user: '사용자',\n },\n date: {\n justNow: '방금 전',\n fewSecondsAgo: '몇 초 전',\n checking: '시간 확인 중',\n createdAt: '생성시간: {time}',\n updatedAt: '수정시간: {time}',\n },\n}\n","export default {\n deleteConfirm: '이 게시글을 삭제하시겠습니까? 되돌릴 수 없습니다.',\n notFound: '게시글을 찾을 수 없습니다.',\n draftPreview: '미공개 미리보기',\n draftNotice: '아직 게시되지 않았습니다. 게시하기 전까지는 작성자만 볼 수 있어요.',\n publish: '게시하기',\n backToList: '목록으로 돌아가기',\n postNav: '게시글 이동',\n list: '목록',\n comments: '댓글',\n}\n","export default {\n titlePlaceholder: '제목',\n contentPlaceholder: '본문을 입력하세요… / 를 입력하면 블록 메뉴가 열립니다.',\n imageContentPlaceholder: '내용을 입력하세요…',\n tagsPlaceholder: '태그 입력 후 Enter',\n skipModeration: '비속어 필터 무시 (관리자)',\n submitEdit: '수정 완료',\n submitNext: '다음: 미리보기',\n apply: '적용',\n imageOptimizing: '이미지 최적화 및 업로드 중…',\n cover: {\n hint: '사진 {count}/{max} · 대표사진 선택 · 끌어 순서 변경 · 파일 드롭/붙여넣기로 추가',\n imageLink: '이미지 링크',\n addPhoto: '사진 추가',\n alt: '사진 {n}',\n representative: '대표',\n setRepresentative: '대표로',\n setRepresentativeAria: '사진 {n}을 대표사진으로 설정',\n remove: '사진 제거',\n add: '추가',\n uploading: '업로드 중…',\n dropOrClick: '사진을 놓거나 클릭해서 추가',\n emptyHint: '여러 장 선택 가능 · 업로드 후 대표사진 선택 · 끌어 순서 변경',\n uploadTitle: '업로드',\n },\n uploadFailed: '업로드 실패',\n aiAssistant: 'AI 글쓰기 도우미',\n insertBlock: '블록 삽입',\n blockMenu: '블록 메뉴',\n imageDialog: {\n title: '이미지 추가',\n chooseFile: '내 기기에서 이미지 선택',\n orLink: '또는 이미지 링크',\n urlLabel: '이미지 URL',\n urlHelp: 'HTTPS 주소만 사용할 수 있으며 원본 사이트에서 삭제되면 이미지도 표시되지 않습니다.',\n previewAlt: '외부 이미지 미리보기',\n addLink: '링크 추가',\n },\n customDialog: {\n title: '커스텀 스타일로 바꾸기',\n label: '어떻게 바꿀까요?',\n help: '예: 경상도 사투리 스타일로 / 정중한 문어체로 / 간결한 개조식으로',\n placeholder: '경상도 사투리 스타일로',\n },\n aiPreview: {\n title: 'AI 결과 확인',\n currentTitle: '현재 제목',\n newTitle: '새 제목',\n currentContent: '현재 내용',\n appendedContent: '추가될 내용',\n before: '이전',\n after: '이후',\n },\n menu: {\n ai: 'AI',\n aiContinue: 'AI로 이어쓰기',\n style: '스타일',\n insert: '삽입',\n paragraph: '본문',\n heading1: '제목 1',\n heading2: '제목 2',\n heading3: '제목 3',\n bulletList: '글머리표 목록',\n orderedList: '번호 목록',\n blockquote: '인용문',\n codeBlock: '코드 블록',\n horizontalRule: '구분선',\n image: '이미지',\n turnInto: '다른 형식으로 변경',\n resetFormatting: '서식 초기화',\n duplicate: '복제',\n moveUp: '위로 이동',\n moveDown: '아래로 이동',\n delete: '삭제',\n },\n toolbar: {\n link: '링크',\n image: '이미지',\n format: '서식',\n bold: '굵게',\n italic: '기울임',\n underline: '밑줄',\n strike: '취소선',\n title: '제목',\n heading: '머리말',\n subheading: '부머리말',\n body: '본문',\n mono: '모노 스타일',\n bulletList: '구분점 목록',\n orderedList: '번호 목록',\n blockquote: '블록 인용',\n codeBlock: '코드 블록',\n horizontalRule: '구분선',\n clearFormatting: '서식 지우기',\n undo: '실행 취소',\n redo: '다시 실행',\n },\n ai: {\n proofread: '맞춤법 검사',\n polish: '문장 다듬기',\n continue: '자연스럽게 이어쓰기',\n summarize: '짧게 요약하기',\n translateEn: '영어로 번역',\n translateKo: '한국어로 번역',\n title: '본문에서 제목 만들기',\n custom: '커스텀 스타일로 바꾸기…',\n failed: 'AI 작업에 실패했습니다. 다시 시도해 주세요.',\n },\n youtubePrompt: 'YouTube 링크를 입력하세요.',\n errors: {\n coverMax: '사진은 최대 {max}장까지 올릴 수 있어요.',\n imageUrlRequired: '이미지 주소를 입력해 주세요.',\n imageUrlInvalid: '올바른 이미지 주소를 입력해 주세요.',\n imageUrlHttps: 'HTTPS 이미지 주소만 사용할 수 있습니다.',\n imageUrlCredentials: '로그인 정보가 포함된 주소는 사용할 수 없습니다.',\n imageTimeout: '이미지를 불러오는 데 시간이 너무 오래 걸립니다.',\n imageNotDisplayable: '표시할 수 없는 이미지입니다.',\n imageLoadFailed: '이미지를 불러올 수 없습니다. 주소나 외부 링크 허용 여부를 확인해 주세요.',\n editorNotReady: '에디터를 준비하지 못했습니다. 다시 시도해 주세요.',\n imageLinkFailed: '이미지 링크를 추가하지 못했습니다.',\n imageOnly: '이미지 파일만 업로드할 수 있습니다.',\n imageTooLarge: '원본 이미지는 {mb}MB 이하여야 합니다.',\n imageUploadFailed: '이미지 업로드에 실패했습니다.',\n pasteAsFile: '사진은 위 영역에 파일로 붙여넣거나 드래그해 주세요.',\n postNotFound: '게시글을 찾을 수 없습니다.',\n loadPermission: '글을 불러올 권한이 없습니다. 로그인 상태를 확인해 주세요.',\n loadFailed: '글을 불러오지 못했습니다: {message}',\n editPermission: '수정 권한이 없습니다. 본인이 작성한 글인지, 로그인이 유지되는지 확인해 주세요.',\n titleRequired: '제목을 입력해 주세요.',\n photoRequired: '사진을 한 장 이상 올려 주세요.',\n bodyRequired: '본문에 글자를 입력하거나 이미지를 첨부해 주세요.',\n signInRequired: '로그인이 필요합니다.',\n boardMissing: '게시판(보드)이 지정되지 않았습니다.',\n writeRestricted: '콘텐츠 경고가 누적되어 글·댓글 작성이 잠시 제한됐어요.',\n moderationBlocked: '게시할 수 없는 내용이 포함되어 있습니다.',\n },\n hint: {\n reviewing: '내용을 검토하는 중…',\n saving: '저장하는 중…',\n },\n}\n","export default {\n introduction: 'Nuxt 4와 Vue 3, TypeScript를 바탕으로 만들고 Nuxt UI와 Firebase로 글과 댓글을 자연스럽게 이어가는 게시판입니다.',\n info: {\n title: '게시판 정보',\n about: '이 게시판은',\n history: '버전 히스토리',\n },\n stack: {\n ui: '화면과 경험',\n data: '데이터와 로그인',\n writing: '글쓰기와 편의',\n },\n}\n","export default {\n signInRequired: '로그인이 필요합니다.',\n commentNotFound: '댓글을 찾을 수 없습니다.',\n}\n","export default {\n introduction: '이 게시판은 Nuxt 4와 Vue 3, TypeScript를 바탕으로 만들었어요. Nuxt UI와 Tailwind CSS로 편안한 화면을 구성하고, Firebase Firestore·Auth·Storage와 nuxt-vuefire로 글과 댓글을 자연스럽게 이어갑니다.',\n settings: '설정',\n loadFailed: '목록을 불러오지 못했습니다: {error}',\n empty: '아직 게시글이 없습니다.',\n photo: '사진',\n likeCount: '추천 {count}',\n info: {\n title: '게시판 정보',\n about: '이 게시판은',\n history: '버전 히스토리',\n },\n stack: {\n framework: '프레임워크 & 언어',\n ui: 'UI & 스타일',\n backend: '백엔드 & 데이터',\n },\n tech: {\n nuxt: 'Vue 기반 SSR 프레임워크',\n vue: 'Composition API · script setup',\n typescript: '안전한 데이터와 컴포넌트 타입',\n nuxtUi: '게시판·폼·모달 UI',\n tailwind: '반응형 · 라이트/다크 스타일',\n lucide: '가볍고 일관된 아이콘',\n dayjs: '읽기 편한 날짜와 상대 시각',\n firestore: '게시글과 댓글을 위한 실시간 DB',\n auth: '안전한 사용자 로그인과 권한',\n storage: '이미지와 첨부파일 보관',\n vuefire: 'Nuxt와 Firebase 실시간 연결',\n },\n}\n","export default {\n default: '일반',\n dense: '조밀',\n video: '영상',\n}\n","export default {\n empty: '아직 댓글이 없습니다.',\n blinded: '관리자에 의해 블라인드된 댓글입니다.',\n}\n","export default {\n empty: '아직 글이 없습니다.',\n}\n","export default {\n selectedCount: '고른 글 {count} / {max}',\n layoutHint: '2개부터 캐러셀, 4개는 그리드',\n searchPlaceholder: '제목 검색',\n loading: '글을 불러오는 중…',\n noMore: '더 고를 글이 없습니다.',\n}\n","export default {\n empty: '고른 게시물이 없습니다.',\n}\n","export default {\n reviewFailed: '내용 검토에 실패해 글을 등록할 수 없습니다. 잠시 후 다시 시도해 주세요.',\n writeRestricted: '콘텐츠 경고가 누적되어 글·댓글 작성이 잠시 제한됐어요.',\n}\n","export default {\n localHit: '「{hit}」 같은 표현은 사용할 수 없습니다. 다른 말로 바꿔 주세요.',\n localGeneric: '욕설·비속어가 포함되어 게시할 수 없습니다. 표현을 바꿔 주세요.',\n categoryBlocked: '{category}이(가) 포함되어 게시할 수 없습니다. 내용을 수정해 주세요.',\n genericBlocked: '게시할 수 없는 내용이 포함되어 있습니다. 내용을 수정해 주세요.',\n categories: {\n abuse: '욕설·비속어·모욕',\n spam: '스팸·광고',\n adult: '선정적·성인 내용',\n violence: '폭력·위협',\n other: '부적절한 내용',\n },\n}\n","export default {\n liftSoon: '곧 해제',\n liftInHours: '약 {hours}시간 후 해제',\n liftInDays: '약 {days}일 후 해제',\n liftInDaysHours: '약 {days}일 {hours}시간 후 해제',\n}\n","export default {\n boardIdRequired: '[memi-board] boardId 가 필요합니다.',\n photoRequired: '사진을 올려 주세요.',\n bodyRequired: '본문에 글자를 입력하거나 이미지를 첨부해 주세요.',\n titleRequired: '제목을 입력해 주세요.',\n}\n","export default {\n notFound: '사용자를 찾을 수 없습니다.',\n noName: '이름 없음',\n joined: '가입 {time}',\n lastVisit: '최근 방문 {time}',\n}\n","export default {\n imageOnly: '이미지 파일만 선택할 수 있습니다.',\n nameRequired: '이름을 입력해 주세요.',\n saveFailed: '프로필을 저장하지 못했습니다.',\n title: '프로필 수정',\n changePhoto: '사진 변경',\n name: '이름',\n bio: '자기소개',\n bioPlaceholder: '나를 소개해 보세요',\n}\n","export default {\n failed: '신고하지 못했습니다.',\n reported: '신고함',\n title: '게시물 신고',\n done: '신고를 접수했습니다. 스태프가 내용을 확인합니다.',\n reason: '사유',\n detailPlaceholder: '자세한 내용 (선택)',\n submit: '신고하기',\n}\n","export default {\n staffOnly: '스태프만 신고 목록을 볼 수 있습니다.',\n loadFailed: '목록을 불러오지 못했습니다: {error}',\n empty: '대기 중인 신고가 없습니다.',\n untitled: '제목 없는 글',\n author: '작성 {name}',\n dismiss: '기각',\n confirm: '확인',\n}\n","export default {\n reason: {\n spam: '스팸·광고',\n abuse: '욕설·혐오·괴롭힘',\n adult: '음란물',\n illegal: '불법 정보',\n other: '기타',\n },\n fallbackLabel: '신고',\n signInRequired: '로그인이 필요합니다.',\n cannotReportOwn: '자신의 글은 신고할 수 없습니다.',\n reasonRequired: '신고 사유를 선택해 주세요.',\n detailTooLong: '자세한 내용은 {max}자까지입니다.',\n}\n","export default {\n kind: {\n list: '게시목록',\n post: '게시물',\n comments: '댓글모음',\n },\n sort: {\n latest: '최신순',\n likes: '좋아요순',\n },\n untitledPost: '게시물',\n view: {\n media: '미디어',\n list: '목록',\n },\n}\n","export default {\n defaultTitle: '섹션 {n}',\n}\n","export default {\n allCategory: '전체',\n boardDescription: '{name} 게시판',\n allDescription: '게시판 — 공지와 커뮤니티 소식을 확인하세요.',\n postFallbackTitle: '게시글 | {site}',\n postFallbackDescription: '게시판',\n photo: '사진',\n postDescriptionFallback: '게시판 글',\n listTitle: '{name} 게시판 | {site}',\n listTitleAll: '게시판 | {site}',\n listDescription: '{name} 게시판 — 소식을 확인하세요.',\n listDescriptionAll: '게시판 — 공지와 이야기를 확인하세요.',\n}\n","export default {\n loading: '설정을 불러오고 있습니다.',\n noAccess: '접근 권한이 없습니다',\n notFound: {\n title: '없는 게시판입니다',\n checkAddress: '주소를 다시 확인해 주세요.',\n checkBoardAddress: '게시판 주소를 다시 확인해 주세요.',\n },\n newBoard: {\n title: '아직 없는 게시판입니다',\n description: '아래 정보를 입력하고 저장하면 이 ID로 새로 만들어집니다.',\n },\n noLabel: '라벨 없음',\n option: {\n default: '일반',\n },\n id: {\n label: '카테고리 ID',\n help: '주소와 데이터 기준값',\n },\n writeRole: {\n label: '글쓰기 권한',\n help: '이 카테고리에 글을 쓸 수 있는 최소 역할',\n helpShort: '글을 쓸 수 있는 최소 역할',\n options: {\n user: '일반 이상',\n staff: '스태프 이상',\n admin: '관리자만',\n },\n },\n commentWriteRole: {\n label: '댓글쓰기 권한',\n help: '이 카테고리에 댓글을 쓸 수 있는 최소 역할',\n helpShort: '댓글을 쓸 수 있는 최소 역할',\n hiddenHelp: '숨김 게시판은 댓글이 공개 피드에 안 나오고, 담당 스태프만 작성할 수 있습니다',\n hiddenFixed: '담당 스태프만 (숨김 보드 고정)',\n },\n staff: {\n label: '담당 스태프',\n help: '지정한 스태프만 이 보드를 설정·관리합니다. 비우면 관리자만',\n placeholder: '관리자만 (스태프 미지정)',\n },\n label: {\n label: '표시 라벨',\n help: '사용자에게 보이는 이름',\n },\n description: {\n label: '설명',\n help: '게시판 상단 등에 보이는 안내 문구',\n placeholder: '이 게시판에 대한 짧은 설명 (선택)',\n },\n visibility: {\n pending: '공개 범위 변경이 아직 끝나지 않았습니다. 같은 설정으로 다시 저장하면 이어서 처리합니다.',\n label: '공개 범위',\n help: '숨김이면 전체 필터에 안 나오고, 글은 관리자·담당 스태프·작성자만 읽을 수 있습니다. 댓글은 담당 스태프만 쓸 수 있습니다',\n options: {\n public: { label: '보임', description: '전체 목록·필터에 표시' },\n hidden: { label: '숨김', description: '일기장·비공개. 댓글은 담당 스태프만' },\n },\n },\n listView: {\n label: '리스트뷰',\n help: '게시글 목록 표시 방식',\n options: {\n dense: '조밀',\n video: '영상',\n },\n },\n editorType: {\n label: '입력 폼',\n help: '글쓰기 화면의 작성 방식',\n options: {\n default: '제목과 본문을 작성',\n image: '여러 사진과 대표사진을 작성',\n },\n },\n locale: {\n label: '게시판 언어',\n help: '비우면 사이트 언어를 따릅니다. 고르면 이 게시판은 항상 그 언어로 보입니다.',\n auto: '자동 (사이트 언어 따름)',\n },\n action: {\n moveDown: '아래로',\n goToBoard: '게시판으로 이동',\n deleteBoard: '게시판 삭제',\n create: '만들기',\n },\n newCategoryPlaceholder: '새 카테고리 이름',\n deleteConfirm: '‘{label}’ 게시판을 삭제하시겠습니까?\\n\\n이 게시판의 모든 게시물, 댓글, 대댓글, 본문 이미지와 첨부파일이 영구 삭제됩니다. 이 작업은 되돌릴 수 없습니다.',\n savedCategory: '‘{label}’ 카테고리를 저장했습니다.',\n savedSettings: '게시판 설정을 저장했습니다.',\n created: '게시판을 만들었습니다.',\n error: {\n orderFailed: '카테고리 순서를 저장하지 못했습니다.',\n deleteFailed: '게시판과 연결 데이터를 삭제하지 못했습니다.',\n saveFailed: '게시판 설정을 저장하지 못했습니다.',\n deleteAllFailed: '게시판 데이터를 삭제하지 못했습니다.',\n },\n danger: {\n title: '위험 영역',\n description: '모든 게시글, 댓글, 첨부파일과 카테고리 설정을 영구 삭제합니다. 게시판 사용자와 관리자 권한은 유지합니다.',\n confirmLabel: '확인을 위해 ‘{phrase}’를 입력하세요',\n phrase: '게시판 데이터 삭제',\n button: '모든 데이터 삭제',\n done: '게시판 데이터를 모두 삭제했습니다.',\n },\n}\n","export default {\n copied: '링크 복사됨',\n}\n","export default {\n withGoogle: 'Google로 로그인',\n withApple: 'Apple로 로그인',\n or: '또는',\n name: '이름',\n email: '이메일',\n password: '비밀번호',\n signUp: '회원가입',\n toSignUp: '계정이 없으신가요? 회원가입',\n toSignIn: '이미 계정이 있으신가요? 로그인',\n}\n","export default {\n tooLargeAfterCompress: '압축 후에도 이미지가 5MB를 초과합니다. 더 작은 이미지를 선택해 주세요.',\n sourceTooLarge: '원본 이미지는 {max}MB 이하여야 합니다.',\n heicUnsupported: 'HEIC 사진은 바로 올릴 수 없습니다. 사진 앱에서 선택하거나 JPG, PNG 또는 WebP로 변환해 주세요.',\n cannotOptimize: '이 이미지 형식은 브라우저에서 최적화할 수 없습니다. JPG, PNG 또는 WebP로 변환해 주세요.',\n imageOnly: '이미지 파일만 업로드할 수 있습니다.',\n canvasUnavailable: 'Canvas를 사용할 수 없습니다',\n compressFailed: '압축 실패',\n loadFailed: '이미지 로드 실패',\n}\n","export default {\n title: '좌우로 스와이프해 보세요',\n description: '왼쪽으로 밀면 다음 글, 오른쪽으로 밀면 이전 글로 이동해요.',\n}\n","export default {\n loadFailed: '목록을 불러오지 못했습니다: {error}',\n empty: '작성한 댓글이 없습니다.',\n blinded: '관리자에 의해 블라인드된 댓글입니다.',\n likes: '좋아요 {count}',\n}\n","export default {\n loadFailed: '목록을 불러오지 못했습니다: {error}',\n empty: '작성한 글이 없습니다.',\n}\n","export default {\n changeRoleFailed: '역할을 변경하지 못했습니다.',\n loading: '사용자 목록을 불러오고 있습니다.',\n noPermission: {\n title: '권한이 없습니다',\n description: '게시판 관리자만 사용자 역할을 관리할 수 있습니다.',\n },\n empty: '게시판에 로그인한 사용자가 없습니다.',\n noName: '이름 없음',\n moderationWarnings: '콘텐츠 경고 {count}회',\n}\n","export default {\n loginRequired: 'AI 글쓰기 도우미는 로그인 후 사용할 수 있습니다.',\n userMissing: '사용자 정보를 확인한 뒤 다시 시도해 주세요.',\n dailyLimit: 'AI 글쓰기 도우미는 하루 {limit}회까지 사용할 수 있습니다. 약 {hours}시간 후 다시 이용해 주세요.',\n contentRequired: 'AI로 다듬을 내용을 먼저 입력해 주세요.',\n customRequired: '어떻게 바꿀지 지시문을 입력해 주세요.',\n emptyResult: 'AI가 결과를 만들지 못했습니다. 다시 시도해 주세요.',\n failed: 'AI 작업에 실패했습니다. 다시 시도해 주세요.',\n actions: {\n proofread: '맞춤법 검사',\n polish: '문장 다듬기',\n continue: '자연스럽게 이어쓰기',\n summarize: '짧게 요약하기',\n translateEn: '영어로 번역',\n translateKo: '한국어로 번역',\n title: '본문에서 제목 만들기',\n custom: '커스텀 스타일로 바꾸기…',\n },\n}\n","// 자동 생성 — scripts/gen-i18n-index.mjs\nimport attachments from './attachments'\nimport auth from './auth'\nimport authorMemo from './authorMemo'\nimport authorMenu from './authorMenu'\nimport avatarCropModal from './avatarCropModal'\nimport boardSettings from './boardSettings'\nimport boardUsers from './boardUsers'\nimport commentFeed from './commentFeed'\nimport commentForm from './commentForm'\nimport commentItem from './commentItem'\nimport commentList from './commentList'\nimport commentThread from './commentThread'\nimport comments from './comments'\nimport common from './common'\nimport detail from './detail'\nimport editor from './editor'\nimport footer from './footer'\nimport likes from './likes'\nimport list from './list'\nimport listViewSwitch from './listViewSwitch'\nimport miniComments from './miniComments'\nimport miniList from './miniList'\nimport miniPicker from './miniPicker'\nimport miniPost from './miniPost'\nimport moderation from './moderation'\nimport moderationPrompt from './moderationPrompt'\nimport moderationStrike from './moderationStrike'\nimport posts from './posts'\nimport profile from './profile'\nimport profileEditModal from './profileEditModal'\nimport reportButton from './reportButton'\nimport reportList from './reportList'\nimport reports from './reports'\nimport sectionUtil from './sectionUtil'\nimport sections from './sections'\nimport seo from './seo'\nimport settings from './settings'\nimport shareButton from './shareButton'\nimport signIn from './signIn'\nimport storage from './storage'\nimport swipeHint from './swipeHint'\nimport userCommentList from './userCommentList'\nimport userPostList from './userPostList'\nimport users from './users'\nimport writingAssistant from './writingAssistant'\n\nexport default {\n attachments,\n auth,\n authorMemo,\n authorMenu,\n avatarCropModal,\n boardSettings,\n boardUsers,\n commentFeed,\n commentForm,\n commentItem,\n commentList,\n commentThread,\n comments,\n common,\n detail,\n editor,\n footer,\n likes,\n list,\n listViewSwitch,\n miniComments,\n miniList,\n miniPicker,\n miniPost,\n moderation,\n moderationPrompt,\n moderationStrike,\n posts,\n profile,\n profileEditModal,\n reportButton,\n reportList,\n reports,\n sectionUtil,\n sections,\n seo,\n settings,\n shareButton,\n signIn,\n storage,\n swipeHint,\n userCommentList,\n userPostList,\n users,\n writingAssistant,\n}\n","import { shallowRef, type Ref } from 'vue'\nimport {\n DEFAULT_MEMI_BOARD_LOCALE,\n FALLBACK_MEMI_BOARD_LOCALE,\n type MemiBoardLocale,\n} from './locales'\nimport ko from './messages/ko'\n\nexport interface MemiBoardMessages {\n [key: string]: string | MemiBoardMessages\n}\n\nexport type MemiBoardMessageParams = Record<string, string | number | null | undefined>\n\n/**\n * 언어별 번역은 필요할 때만 받는다(언어당 별도 청크).\n * ko 는 원문이자 최종 폴백이라 코어 번들에 들어간다.\n */\nconst loaders: Record<Exclude<MemiBoardLocale, 'ko'>, () => Promise<{ default: MemiBoardMessages }>> = {\n en: () => import('./messages/en'),\n ja: () => import('./messages/ja'),\n de: () => import('./messages/de'),\n fr: () => import('./messages/fr'),\n es: () => import('./messages/es'),\n pt: () => import('./messages/pt'),\n zh: () => import('./messages/zh'),\n ar: () => import('./messages/ar'),\n id: () => import('./messages/id'),\n}\n\nconst GLOBAL_KEY = '__MEMI_BOARD_I18N__' as const\n\ninterface I18nStore {\n messages: Partial<Record<MemiBoardLocale, MemiBoardMessages>>\n pending: Partial<Record<MemiBoardLocale, Promise<void>>>\n /** 언어 파일이 도착하면 올라가서 t() 를 쓰는 화면을 다시 그린다. */\n version: Ref<number>\n}\n\nfunction store(): I18nStore {\n const g = globalThis as typeof globalThis & { [GLOBAL_KEY]?: I18nStore }\n g[GLOBAL_KEY] ??= { messages: { ko }, pending: {}, version: shallowRef(0) }\n return g[GLOBAL_KEY]\n}\n\nfunction loadOne(locale: MemiBoardLocale): Promise<void> {\n const s = store()\n if (s.messages[locale]) return Promise.resolve()\n if (locale === 'ko') return Promise.resolve()\n s.pending[locale] ??= loaders[locale]()\n .then((mod) => {\n s.messages[locale] = mod.default\n s.version.value++\n })\n .catch((error) => {\n delete s.pending[locale]\n console.warn(`[memi-board] failed to load locale \"${locale}\"`, error)\n })\n return s.pending[locale]!\n}\n\n/** 해당 언어와 폴백(en) 번역을 받아 둔다. 이미 받았으면 바로 끝난다. */\nexport function loadMemiBoardLocale(locale: MemiBoardLocale): Promise<void> {\n if (locale === 'ko') return Promise.resolve()\n return Promise.all([loadOne(locale), loadOne(FALLBACK_MEMI_BOARD_LOCALE)]).then(() => undefined)\n}\n\nexport function isMemiBoardLocaleLoaded(locale: MemiBoardLocale): boolean {\n return !!store().messages[locale]\n}\n\nfunction lookup(tree: MemiBoardMessages | undefined, key: string): string | undefined {\n let node: string | MemiBoardMessages | undefined = tree\n for (const part of key.split('.')) {\n if (!node || typeof node === 'string') return undefined\n node = node[part]\n }\n return typeof node === 'string' ? node : undefined\n}\n\nfunction interpolate(text: string, params?: MemiBoardMessageParams): string {\n if (!params) return text\n return text.replace(/\\{(\\w+)\\}/g, (match, name: string) => {\n const value = params[name]\n return value == null ? match : String(value)\n })\n}\n\n/**\n * 키 하나를 번역한다. 언어 → en → ko 순으로 찾는다.\n * 아직 받지 않은 언어는 건너뛰므로, 파일이 오기 전 잠깐은 폴백 문구가 보일 수 있다.\n * 반응형 의존성을 걸어 두어 파일이 도착하면 다시 계산된다.\n */\nexport function translate(\n locale: MemiBoardLocale | undefined,\n key: string,\n params?: MemiBoardMessageParams,\n): string {\n const s = store()\n void s.version.value\n const code = locale ?? DEFAULT_MEMI_BOARD_LOCALE\n const text = lookup(s.messages[code], key)\n ?? (code === 'ko' ? undefined : lookup(s.messages[FALLBACK_MEMI_BOARD_LOCALE], key))\n ?? lookup(s.messages.ko, key)\n return text == null ? key : interpolate(text, params)\n}\n","import type { Timestamp } from 'firebase/firestore'\nimport { DEFAULT_MEMI_BOARD_LOCALE, memiBoardLocaleInfo, type MemiBoardLocale } from '../i18n/locales'\nimport { translate } from '../i18n/translate'\n\nfunction intl(locale: MemiBoardLocale | undefined): string {\n return memiBoardLocaleInfo(locale ?? DEFAULT_MEMI_BOARD_LOCALE).intl\n}\n\nexport function formatDate(ts: Timestamp | undefined, locale?: MemiBoardLocale): string {\n return ts?.toDate ? ts.toDate().toLocaleDateString(intl(locale)) : ''\n}\n\nconst MINUTE = 60\nconst HOUR = 60 * MINUTE\nconst DAY = 24 * HOUR\n\n/** dayjs relativeTime 기본 구간과 같은 기준으로 반올림한다. */\nexport function formatRelativeDate(ts: Timestamp | undefined, now = Date.now(), locale?: MemiBoardLocale): string {\n if (!ts?.toDate) return translate(locale, 'common.date.justNow')\n const seconds = Math.max(0, Math.round((now - ts.toDate().getTime()) / 1000))\n if (seconds < 45) return translate(locale, 'common.date.fewSecondsAgo')\n const rtf = new Intl.RelativeTimeFormat(intl(locale), { numeric: 'always' })\n const days = seconds / DAY\n if (seconds < 90) return rtf.format(-1, 'minute')\n if (seconds < 45 * MINUTE) return rtf.format(-Math.round(seconds / MINUTE), 'minute')\n if (seconds < 90 * MINUTE) return rtf.format(-1, 'hour')\n if (seconds < 22 * HOUR) return rtf.format(-Math.round(seconds / HOUR), 'hour')\n if (seconds < 36 * HOUR) return rtf.format(-1, 'day')\n if (days < 26) return rtf.format(-Math.round(days), 'day')\n if (days < 46) return rtf.format(-1, 'month')\n if (days < 320) return rtf.format(-Math.round(days / 30.4), 'month')\n if (days < 548) return rtf.format(-1, 'year')\n return rtf.format(-Math.round(days / 365), 'year')\n}\n\nexport function formatFullDate(ts: Timestamp | undefined, locale?: MemiBoardLocale): string {\n if (!ts?.toDate) return translate(locale, 'common.date.checking')\n return new Intl.DateTimeFormat(intl(locale), {\n year: 'numeric',\n month: 'long',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n hourCycle: 'h23',\n }).format(ts.toDate())\n}\n\n/** 생성·수정 시각이 같거나 수정 시각이 없으면 한 줄, 실제 수정됐으면 두 줄. */\nexport function formatTimestampDetails(\n createdAt: Timestamp | undefined,\n updatedAt?: Timestamp,\n locale?: MemiBoardLocale,\n): string[] {\n const created = formatFullDate(createdAt, locale)\n const createdMs = createdAt?.toMillis?.()\n const updatedMs = updatedAt?.toMillis?.()\n if (updatedMs == null || createdMs == null || createdMs === updatedMs) return [created]\n return [\n translate(locale, 'common.date.createdAt', { time: created }),\n translate(locale, 'common.date.updatedAt', { time: formatFullDate(updatedAt, locale) }),\n ]\n}\n","import {\n computed,\n getCurrentInstance,\n hasInjectionContext,\n inject,\n onServerPrefetch,\n provide,\n toValue,\n watch,\n type ComputedRef,\n type InjectionKey,\n type MaybeRefOrGetter,\n} from 'vue'\nimport { useMemiBoardConfig } from '../config'\nimport {\n DEFAULT_MEMI_BOARD_LOCALE,\n memiBoardLocaleInfo,\n normalizeMemiBoardLocale,\n type MemiBoardLocale,\n} from './locales'\nimport { loadMemiBoardLocale, translate, type MemiBoardMessageParams } from './translate'\nimport {\n formatDate,\n formatFullDate,\n formatRelativeDate,\n formatTimestampDetails,\n} from '../utils/formatDate'\nimport type { Timestamp } from 'firebase/firestore'\n\n/**\n * 호스트 언어. memi-board Nuxt 플러그인이 @nuxtjs/i18n 의 locale 을 앱 단위로 provide 한다.\n * 문자열 키 — dist 번들과 호스트 컴파일 플러그인이 같은 키를 보게 한다.\n */\nexport const memiBoardHostLocaleKey = 'memiBoard:hostLocale' as unknown as InjectionKey<MaybeRefOrGetter<string | undefined | null>>\n/** 보드 단위 언어. 보드 화면(List·Detail·Editor)이 provide 하고 자식(댓글 등)이 따른다. */\nconst boardLocaleKey: InjectionKey<ComputedRef<MemiBoardLocale>> = Symbol('memiBoard:boardLocale')\n\nexport interface UseMemiBoardI18nOptions {\n /**\n * 보드 설정의 언어(`BoardModel.locale`). 비어 있으면 호스트 언어를 따른다.\n * 넘기면 이 컴포넌트 아래 자식들도 같은 언어를 쓴다.\n */\n boardLocale?: MaybeRefOrGetter<string | undefined | null>\n}\n\nexport function useMemiBoardI18n(options: UseMemiBoardI18nOptions = {}) {\n const canInject = hasInjectionContext()\n const parentLocale = canInject ? inject(boardLocaleKey, null) : null\n const hostLocale = canInject ? inject(memiBoardHostLocaleKey, null) : null\n const config = useMemiBoardConfig()\n\n const locale = computed<MemiBoardLocale>(() =>\n normalizeMemiBoardLocale(toValue(options.boardLocale))\n ?? parentLocale?.value\n ?? normalizeMemiBoardLocale(toValue(hostLocale))\n ?? normalizeMemiBoardLocale(config.locale)\n ?? DEFAULT_MEMI_BOARD_LOCALE,\n )\n\n if (options.boardLocale !== undefined && canInject) provide(boardLocaleKey, locale)\n\n watch(locale, value => void loadMemiBoardLocale(value), { immediate: true })\n if (getCurrentInstance()) onServerPrefetch(() => loadMemiBoardLocale(locale.value))\n\n const info = computed(() => memiBoardLocaleInfo(locale.value))\n\n return {\n locale,\n /** 'ltr' | 'rtl' — 보드 루트 요소의 dir 속성에 쓴다. */\n dir: computed(() => info.value.dir),\n /** Intl 로케일 태그(예: 'ko-KR'). */\n intlLocale: computed(() => info.value.intl),\n t: (key: string, params?: MemiBoardMessageParams) => translate(locale.value, key, params),\n formatDate: (ts: Timestamp | undefined) => formatDate(ts, locale.value),\n formatFullDate: (ts: Timestamp | undefined) => formatFullDate(ts, locale.value),\n formatRelativeDate: (ts: Timestamp | undefined, now?: number) => formatRelativeDate(ts, now, locale.value),\n formatTimestampDetails: (createdAt: Timestamp | undefined, updatedAt?: Timestamp) =>\n formatTimestampDetails(createdAt, updatedAt, locale.value),\n /** 숫자를 현재 언어 형식으로(예: 1,234). */\n formatNumber: (value: number) => value.toLocaleString(info.value.intl),\n }\n}\n\nexport type MemiBoardI18n = ReturnType<typeof useMemiBoardI18n>\n","/**\n * 제목 문자열을 URL-friendly slug로 변환\n * e.g. \"게시판 모듈 만들기!!\" → \"게시판-모듈-만들기\"\n */\nexport function slugify(text: string): string {\n return text\n .trim()\n .replace(/\\s+/g, '-') // 공백(연속 포함) → 하이픈\n .replace(/[^a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ-]/g, '') // 허용 문자 외 제거\n .replace(/-+/g, '-') // 연속 하이픈 → 단일 하이픈\n .replace(/^-+|-+$/g, '') // 앞뒤 하이픈 제거\n}\n\n/** Storage 경로/파일명에 안전한 문자열로 변환 (한글은 유지) */\nexport function safeFileName(name: string, maxLength = 60): string {\n return name.replace(/[^a-zA-Z0-9가-힣ㄱ-ㅎ._-]/g, '-').slice(0, maxLength)\n}\n"],"mappings":";;;AA2BA,IAAa,IAA2B,kBAC3B,IAA8B,qBAC9B,IAA2B,kBAC3B,IAA6B,oBAC7B,IAA8B,qBAC9B,IAA2B;AAWxC,SAAgB,EAAuB,GAOn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