基于 Serverless 个人建站工具
Photup 是一个由 FlexType 驱动的照片站点
FlexType 使用 Apache-2.0 协议开源,请遵守开源协议。
a Serverless-based content management system
Home Page: https://flex.tripper.press
License: Apache License 2.0
基于 Serverless 个人建站工具
Photup 是一个由 FlexType 驱动的照片站点
FlexType 使用 Apache-2.0 协议开源,请遵守开源协议。
从头开始造一个 CMS 的轮子,也是因为在做个人站点和照片站点的时候,对现在市面上的 CMS 都不太满意。Strapi 需要服务器架设,Sanity 等 Saas 服务,在超过免费用量之后都价格不菲,于是就想着为什么不基于 Vercel 或者 Cloudflare Pages 等 Serverless 服务来架设 CMS 呢,于是便创立了这一项目。
一开始,这个项目还处在验证和初步创建阶段,第一阶段需要实现以下目标:
祝我成功吧。
在通过文件管理页面上传文件时,浏览器控制台报错 413 (Payload Too Large),这是因为 Vercel Serverless Function 对上传文件有 4.5M 的限制:How do I bypass the 4.5MB body size limit of Vercel Serverless Functions?
可以让服务端计算出上传密钥之后,直接让客户端与又拍云交互上传文件。
照片流功能现在写的有点混乱,一个组件内产生了多种不同格式的数据,需要重新梳理一下
照片流功能需要实现一下功能
基于以上功能,照片流组件需要获取一下数据:
基于此,我需要重新设计照片流的数据结构
{
"id": "cluyx7cx80001dkzt51c7ihyo",
"title": "露营",
"assetId": 30,
"url": ""
"originExif": {}
"overExif": {}
"exif": {}
},
其中,url 可以设置为一个引用值,基于 assetId 同步修改
originExif 是原始的 Exif 信息
overExif 是修改的 Exif 信息
最终,将 originExif 和 overExif 进行合并,两项冲突的以 overExif 为准,输出为 exif 。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.