Skip to content

Commit

Permalink
refactor: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 committed Jun 5, 2024
1 parent 27be6ac commit 3c080eb
Show file tree
Hide file tree
Showing 31 changed files with 2,053 additions and 2,205 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Install
uses: pnpm/action-setup@v4
with:
version: 8
- name: Install
run: |
pnpm install
- name: Lint
run: |
pnpm run lint
- name: Build
run: |
pnpm run build
21 changes: 20 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
semi: false,
singleQuote: true,
};
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["johnsoncodehk.volar"]
"recommendations": ["Vue.volar"]
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

32 changes: 8 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<p align="center">
<a href="https://boomb.cn">
<img src="public/logo.png" width="300" />
Expand All @@ -14,16 +13,12 @@
</p>
</p>


It is used to manage store the gallery. If you use it reasonably, it can be used as a picture bed and file sharing. Isn't it good!

If you use it reasonably, you can use it as a picture bed or file sharing, not bad!

Share in the spirit of open source, if it helps you, Star will support it!



## Features

- Github / Gitee support
- No need to deploy, start in 2 steps
- Ready to use out of the box, leave after use
Expand All @@ -33,46 +28,35 @@ Share in the spirit of open source, if it helps you, Star will support it!
- Custom file upload scheme
- Support online new text file



## Screenshot
![](https://raw.githubusercontent.com/xjh22222228/public/gh-pages/bed/screenshot.gif)



![](https://raw.githubusercontent.com/xjh22222228/public/gh-pages/bed/screenshot.gif)

## Usage

1. [Create a New Repository](https://github.com/new) (Or an existing repo)
2. Open [https://boomb.cn](https://boomb.cn)





## Built with

- [Vue3](https://github.com/vuejs/vue-next)
- [Element Plus](https://github.com/element-plus/element-plus)
- [TypeScript](https://github.com/Microsoft/TypeScript)
- [Github OAuth2](https://github.com/xjh22222228/github-oauth2)



## Set up

```bash
# Install dep
$ yarn
$ pnpm i

# Start localhost:7000
$ yarn start
$ npm run start

# Build Production
$ yarn build
$ npm run build
```


If you build it yourself, you may need [Github OAuth2](https://github.com/xjh22222228/github-oauth2)

It is not recommended to build by yourself!



35 changes: 9 additions & 26 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<p align="center">
<a href="https://boomb.cn">
<img src="public/logo.png" width="300" />
Expand All @@ -14,64 +13,48 @@
</p>
</p>


用于管理存储图库,如果您合理的使用,可以当做图床、文件分享,不错吧!

以开源的精神分享,如果对您有帮助,Star 支持一下!



## 特性

- 支持 Github / Gitee
- 无需部署,2步开始
- 无需部署,2 步开始
- 开箱即用,用完即走
- 支持拖拽、粘贴上传
- 多个 CDN 加速
- 可以当做文件分享
- 自定义文件上传方案
- 支持在线新建文本文件




## 截图
![](https://raw.githubusercontent.com/xjh22222228/public/gh-pages/bed/screenshot.gif)



![](https://raw.githubusercontent.com/xjh22222228/public/gh-pages/bed/screenshot.gif)

## 像数 1, 2, 3 一样容易

1. [创建一个仓库](https://github.com/new) (或者已有仓库)
2. 打开 [https://boomb.cn](https://boomb.cn)





## 内置

- [Vue3](https://github.com/vuejs/vue-next)
- [Element Plus](https://github.com/element-plus/element-plus)
- [TypeScript](https://github.com/Microsoft/TypeScript)
- [Github OAuth2](https://github.com/xjh22222228/github-oauth2)



## 构建

```bash
# 安装依赖
$ yarn
$ pnpm i

# 启动 localhost:7000
$ yarn start
$ npm run start

# 打包
$ yarn build
$ npm run build
```


如果您是部署到自己服务器上,你可能需要 [Github OAuth2](https://github.com/xjh22222228/github-oauth2)

但作者不建议您自己部署, 开箱即用,用完即走。



30 changes: 13 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<!DOCTYPE html>
<!--
2021/3/21
,+++++++++++++++++++++++++++++++++++++++++++++++++.
( We want you! https://github.com/xjh22222228/boomb )
`-,+++++++++++++++++++++++++++++++++++++++++++++++'
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.png" />
<meta name="author" content="https://github.com/xjh22222228">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="author" content="https://github.com/xjh22222228" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Boomb</title>
<style>
.auth-loading {
Expand All @@ -26,19 +36,5 @@
<div class="auth-loading"></div>
</div>
<script type="module" src="/src/main.ts"></script>
<script type="module">
var isDev = import.meta.env.DEV;
var _hmt = _hmt || [];
(function() {
if (isDev) {
return;
}
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?3c0f46f0611a38118c325f51cb183ad8";
hm.async = true
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
43 changes: 23 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
{
"name": "boomb",
"version": "1.10.1",
"version": "2.0.0",
"author": "xiejiahe",
"repository": {
"type": "git",
"url": "https://github.com/xjh22222228/boomb.git"
},
"type": "module",
"scripts": {
"dev": "vite",
"start": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"dependencies": {
"sass": "^1.49.9",
"vue": "^3.2.31",
"@types/bytes": "^3.1.1",
"@types/lodash.debounce": "^4.0.6",
"@types/nprogress": "^0.2.0",
"@types/uuid": "^8.3.4",
"axios": "^0.26.1",
"@element-plus/icons-vue": "^2.3.1",
"axios": "^1.7.2",
"bytes": "^3.1.2",
"clipboard": "^2.0.10",
"element-plus": "^2.0.6",
"js-base64": "^3.7.2",
"clipboard": "^2.0.11",
"element-plus": "^2.7.4",
"js-base64": "^3.7.7",
"lodash.debounce": "^4.0.8",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"uuid": "^8.3.2",
"viewerjs": "^1.10.4",
"vue-i18n": "^9.1.9",
"vue-router": "^4.0.14",
"vuex": "^4.0.2"
"sass": "^1.77.4",
"uuid": "^9.0.1",
"viewerjs": "^1.11.6",
"vue": "^3.4.21",
"vue-i18n": "^9.13.1",
"vue-router": "^4.3.2",
"vuex": "^4.1.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.2.4",
"typescript": "^4.6.2",
"vite": "^2.8.6",
"vue-tsc": "^0.32.1"
"@types/bytes": "^3.1.4",
"@types/lodash.debounce": "^4.0.9",
"@types/nprogress": "^0.2.3",
"@types/uuid": "^9.0.8",
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "^5.2.2",
"vite": "^5.2.0",
"vue-tsc": "^2.0.6"
}
}
Loading

0 comments on commit 3c080eb

Please sign in to comment.