Giter Site home page Giter Site logo

just-imgs's Introduction

Just-Imgs

图床管理前端,Vite + Vue3 + TS,对接 Cloudflare Worker + R2 使用;

对应的后端项目:wdssmq/R2-Worker-cf

以及,终于实际用了下 antfu/vitesse-lite

安装 / 调试 / 构建

  • 执行 install 操作会自动生成 .env.dev.local.env.local,分别用于本地调试和打包构建;
  • 下载 Worker 项目,设置相应的变量文件用于上传图片时的验证鉴权;
    • 调试运行时端口号会随机变更,需要修改至 vite 配置内;
  • 用户名密码会保存在浏览器 localStorage 中;
  • --------------
  • Worker 可以直接执行 npm run deploy 进行部署,前端这边可以打包后传 GitHub Pages 或者 Cloudflare Pages;
    • 部署至 Cloudflare Pages 时需要设置 VITE_CF_WORKER_URL=http://Worker 服务地址/NODE_VERSION=18.16.1 两个环境变量;
  • 吐槽:见过几个项目带 netlify.toml 了,然而就没感觉没啥存在感;

截图

001.png

002.png

参考

lewkamtao/PicHub: 一个基于 Vue3 + TypeScript 实现的 Github 图床:

https://github.com/lewkamtao/PicHub

yusukebe/r2-image-worker: Store and Deliver images with R2 backend Cloudflare Workers.:

https://github.com/yusukebe/r2-image-worker

投喂支持

爱发电:https://afdian.net/a/wdssmq

哔哩哔哩:https://space.bilibili.com/44744006/video「投币或充电」「大会员卡券领取 - bilibili

RSS 订阅:https://feed.wdssmq.com/「言说」RSS 是一种态度!!

在更多平台关注我:https://www.wdssmq.com/guestbook.html#其他出没站点和信息

更多「小代码」:https://cn.bing.com/search?q=小代码+沉冰浮水

just-imgs's People

Contributors

wdssmq avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.