Add mirror workflow for scheduled and manual runs

may the --force and GitHub Copilot be with you(
This commit is contained in:
shenjack 2023-12-16 16:12:19 +08:00
parent 238c293ba9
commit bd73a4947d
Signed by: shenjack
GPG Key ID: 7B1134A979775551
16 changed files with 28 additions and 128 deletions

28
.github/workflows/mirror.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: 从 Gitea 镜像
on:
schedule:
- cron: "0,20,40 * * * *"
workflow_dispatch:
permissions: write-all
jobs:
pull_remote:
name: 镜像 shenjack.top
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
with:
token: ${{ secrets.WORK_TOKEN }}
- name: 镜像分支
run: |
git config --global user.email 3695888@qq.com
git config --global user.name shenjack-action
git remote add gitea http://shenjack.top:5100/ARS/ars-tools.git
git checkout -b temp
git fetch gitea
git checkout main
git branch -d temp
git push --force origin 'refs/remotes/gitea/*:refs/heads/*'

View File

@ -1 +0,0 @@
import{p as k,m as V,a as C,b as g,g as p,c as P,t as b,u as y,d as s,_ as S,o as B,e as R,w as a,f as t,h as o}from"./index-46b44c7e.js";import{m as w,a as D,b as E,c as T,d as j,e as N,u as L,f as q,g as z,h as A,i as F,j as H,k as I,V as M,l as $,n as l,o as G,p as J,q as K,r as O}from"./VResponsive-fde488f6.js";const Q=k({color:String,...w(),...V(),...D(),...E(),...T(),...j(),...N(),...C(),...g()},"VSheet"),c=p()({name:"VSheet",props:Q(),setup(e,n){let{slots:r}=n;const{themeClasses:i}=P(e),{backgroundColorClasses:d,backgroundColorStyles:u}=L(b(e,"color")),{borderClasses:m}=q(e),{dimensionStyles:f}=z(e),{elevationClasses:h}=A(e),{locationStyles:_}=F(e),{positionClasses:v}=H(e),{roundedClasses:x}=I(e);return y(()=>s(e.tag,{class:["v-sheet",i.value,d.value,m.value,h.value,v.value,x.value,e.class],style:[u.value,f.value,_.value,e.style]},r)),{}}}),U={},W=t("h1",null,"工具箱",-1),X=t("div",{class:"py-14"},null,-1),Y=t("h2",{class:"text-h5 mb-6"},"模块README模板",-1),Z=t("p",{class:"mb-4 text-medium-emphasis text-body-2"},[o(" 这是一个制作模块介绍模板的工具 "),t("br"),o(" 如果你还不会使用它,点击 "),t("a",{href:"#",class:"text-decoration-none text-info"}," 模板工具使用指南 ")],-1),ee={class:"text-end"};function se(e,n){return B(),R(M,{class:"fill-height"},{default:a(()=>[s(O,{class:"align-center text-center fill-height"},{default:a(()=>[s($,{justify:"center"},{default:a(()=>[s(l,{cols:"1"},{default:a(()=>[s(G,{icon:"mdi-tools",size:"64"})]),_:1}),s(l,{cols:"2",class:"text-left"},{default:a(()=>[W]),_:1})]),_:1}),X,s(c,{class:"d-flex flex-wrap justify-center"},{default:a(()=>[s(c,{elevation:"6",rounded:"lg",class:"pa-4 text-left mx-auto"},{default:a(()=>[Y,Z,s(J,{class:"mb-4"}),t("div",ee,[s(K,{href:"/rmm",class:"text-none",color:"success",rounded:"",variant:"flat",width:"120","append-icon":"mdi-arrow-right"},{default:a(()=>[o(" Continue! ")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1})}const oe=S(U,[["render",se]]);export{oe as default};

View File

@ -1 +0,0 @@
.v-sheet{display:block;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-sheet--border{border-width:thin;box-shadow:none}.v-sheet--absolute{position:absolute}.v-sheet--fixed{position:fixed}.v-sheet--relative{position:relative}.v-sheet--sticky{position:sticky}.v-sheet--rounded{border-radius:4px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
dist/favicon.ico vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

26
dist/index.html vendored
View File

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="anonymous">
<link rel="preload" as="style" onload="this.rel='stylesheet'" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap">
<link rel="preload" as="font" type="font/eot" href="/assets/materialdesignicons-webfont-861aea05.eot" crossorigin="anonymous">
<link rel="preload" as="font" type="font/woff2" href="/assets/materialdesignicons-webfont-e52d60f6.woff2" crossorigin="anonymous">
<link rel="preload" as="font" type="font/woff" href="/assets/materialdesignicons-webfont-48d3eec6.woff" crossorigin="anonymous">
<link rel="preload" as="font" type="font/ttf" href="/assets/materialdesignicons-webfont-bd725a7a.ttf" crossorigin="anonymous">
<meta charset="UTF-8"/>
<link rel="icon" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Vuetify 3</title>
<script type="module" crossorigin src="/assets/index-46b44c7e.js"></script>
<link rel="stylesheet" href="/assets/index-874f47d1.css">
</head>
<body>
<div id="app"></div>
</body>
</html>

View File

@ -1,42 +0,0 @@
# “位宽” “模块名称”
## 简介
{{profile}}
## 信源链接
{{#links2strs}}
- {{.}}
{{/links2strs}}
## 模块信息
- 适用版本
- {{{versions2str}}}
- 作者
- {{author}}
- 存档位置
- 1x1x1
- 电路类型
- {{elect_type}}
- 电路大小
- {{size2str}}
- 总延迟
- {{delay2str}}
### 标签
## 模块参数列表
| 端口列表 | 位宽 | 位置 | 延迟 | 注释 |
|------|----|----|----|----|
| | | | | |
## 模块指标列表
| 指标项目 | 参数 | 指标项目 | 参数 |
|------|----|------|----|
| | | | |