Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
befb954
feat(media-library): add GitHub media library with image browsing
ComputelessComputer Jan 8, 2026
ce70d12
fix(cms): relocate GitHub media library registration
ComputelessComputer Jan 8, 2026
664b43f
feat(media-library): add caching, folders, and GitHub upload support
ComputelessComputer Jan 8, 2026
501d87b
feat(media): add media upload API route with GitHub integration
ComputelessComputer Jan 8, 2026
b1265cb
feat(media-upload): use specific GitHub token for repo access
ComputelessComputer Jan 8, 2026
7c4f490
Update apps/web/src/routes/api/media-upload.ts
ComputelessComputer Jan 8, 2026
69b66a7
Update apps/web/public/admin/media-library.js
ComputelessComputer Jan 8, 2026
49fcbe3
Update apps/web/src/routes/api/media-upload.ts
ComputelessComputer Jan 8, 2026
a6fd3d7
feat(media-library): add initial HTML structure for media page
ComputelessComputer Jan 8, 2026
2797dec
feat(admin): add route handling for media library page
ComputelessComputer Jan 8, 2026
a480f42
feat(media-library): enhance media library with fullscreen option
ComputelessComputer Jan 8, 2026
e0fa15b
feat(ui): adjust media library icon vertical alignment
ComputelessComputer Jan 8, 2026
afedf49
Prefix uploaded filenames with timestamp
ComputelessComputer Jan 8, 2026
d193bde
refactor(media-library): simplify GitHub image fetch and caching
ComputelessComputer Jan 8, 2026
cd117b1
feat(media-library): enhance selection and insertion workflow
ComputelessComputer Jan 8, 2026
284ac90
Add back/forward breadcrumb navigation in media library
ComputelessComputer Jan 8, 2026
5e5def3
Add "New Folder" button to media modal
ComputelessComputer Jan 8, 2026
0c0e6f0
Add delete and unselect actions for selected media
ComputelessComputer Jan 8, 2026
0abc732
Deselect file when clicking modal background
ComputelessComputer Jan 9, 2026
34671b2
Expand click-to-deselect area to entire media finder
ComputelessComputer Jan 9, 2026
e740a03
Use Upload button and simplify editor selection toolbar
ComputelessComputer Jan 9, 2026
0eb29f9
Move New Folder and Upload buttons to header
ComputelessComputer Jan 9, 2026
4ee3c85
Use public paths when inserting selected media
ComputelessComputer Jan 9, 2026
d591f77
Guard media insert with handleInsert and add debug logs
ComputelessComputer Jan 9, 2026
bd25baa
Preserve GitHub download URLs when selecting media
ComputelessComputer Jan 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apps/web/public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ publish_mode: editorial_workflow
media_folder: apps/web/public/images
public_folder: /images

media_library:
name: github-images

collections:
- name: articles
label: Blog
Expand All @@ -22,7 +25,7 @@ collections:
name: meta_title
widget: string
hint: Title for SEO/browser tab (50-60 chars ideal)
pattern: ['^.{1,70}$', "Keep under 70 characters for SEO"]
pattern: ["^.{1,70}$", "Keep under 70 characters for SEO"]

- label: Display Title
name: display_title
Expand All @@ -34,7 +37,7 @@ collections:
name: meta_description
widget: text
hint: Description for SEO (150-160 chars ideal)
pattern: ['^.{50,200}$', "Aim for 150-160 characters"]
pattern: ["^.{50,200}$", "Aim for 150-160 characters"]

- label: Author
name: author
Expand Down
4 changes: 4 additions & 0 deletions apps/web/public/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<body>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js-yaml.min.js"></script>
<script src="/admin/media-library.js"></script>
<script>
CMS.registerMediaLibrary(window.GitHubMediaLibrary);
</script>
<script type="module" src="/admin/registration.js"></script>
<script src="/admin/preview-templates.js"></script>
<script>
Expand Down
Loading