mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-15 00:01:25 -04:00
Compare commits
13 Commits
c205d559f9
...
da65b7ad47
Author | SHA1 | Date | |
---|---|---|---|
|
da65b7ad47 | ||
|
e8887de090 | ||
|
2b241ac914 | ||
|
1ceaef26b8 | ||
|
fa506cd571 | ||
|
3e7101dd64 | ||
|
5adf32b48e | ||
|
5987f00523 | ||
|
18fc4f5289 | ||
|
ce16ff6219 | ||
|
1bd2772235 | ||
|
00d998a513 | ||
|
8d33ce08b1 |
45
.drone.yml
45
.drone.yml
@ -1267,7 +1267,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-amd64
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@ -1289,7 +1289,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64-rootless
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-amd64-rootless
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@ -1306,43 +1306,6 @@ steps:
|
|||||||
exclude:
|
exclude:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: docker-linux-arm64-dry-run
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: arm64
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- compliance
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
paths:
|
|
||||||
exclude:
|
|
||||||
- "docs/**"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: dryrun
|
|
||||||
image: plugins/docker:latest
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
dry_run: true
|
|
||||||
repo: gitea/gitea
|
|
||||||
tags: linux-arm64
|
|
||||||
build_args:
|
|
||||||
- GOPROXY=https://goproxy.io
|
|
||||||
environment:
|
|
||||||
PLUGIN_MIRROR:
|
|
||||||
from_secret: plugin_mirror
|
|
||||||
DOCKER_BUILDKIT: 1
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
@ -1609,7 +1572,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-arm64
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@ -1631,7 +1594,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64-rootless
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-arm64-rootless
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
|
19
.github/workflows/pull-docker_dryrun.yml
vendored
Normal file
19
.github/workflows/pull-docker_dryrun.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Docker build dry run
|
||||||
|
|
||||||
|
on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker_dryrun:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
push: false
|
||||||
|
tags: gitea/gitea:linux-amd64
|
||||||
|
build-args: |
|
||||||
|
GOPROXY=https://goproxy.io
|
4
.github/workflows/push-publish_docs.yml
vendored
4
.github/workflows/push-publish_docs.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
branch:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -26,6 +26,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
production-branch: main
|
production-branch: main
|
||||||
publish-dir: docs/public/
|
publish-dir: docs/public/
|
||||||
site-id: d2260bae-7861-4c02-8646-8f6440b12672
|
|
||||||
env:
|
env:
|
||||||
|
NETLIFY_SITE_ID: d2260bae-7861-4c02-8646-8f6440b12672
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
3
.lgtm
3
.lgtm
@ -1,3 +0,0 @@
|
|||||||
pattern = "(?)LGTM"
|
|
||||||
self_approval_off = true
|
|
||||||
ignore_maintainers_file = true
|
|
@ -121,8 +121,7 @@ See the [hacking instructions](https://docs.gitea.io/en-us/hacking-on-gitea/).
|
|||||||
|
|
||||||
Changes to Gitea must be reviewed before they are accepted—no matter who
|
Changes to Gitea must be reviewed before they are accepted—no matter who
|
||||||
makes the change, even if they are an owner or a maintainer. We use GitHub's
|
makes the change, even if they are an owner or a maintainer. We use GitHub's
|
||||||
pull request workflow to do that. And, we also use [LGTM](http://lgtm.co)
|
pull request workflow to do that. Every PR is reviewed by at least 2 maintainers.
|
||||||
to ensure every PR is reviewed by at least 2 maintainers.
|
|
||||||
|
|
||||||
Please try to make your pull request easy to review for us. And, please read
|
Please try to make your pull request easy to review for us. And, please read
|
||||||
the *[How to get faster PR reviews](https://github.com/kubernetes/community/blob/261cb0fd089b64002c91e8eddceebf032462ccd6/contributors/guide/pull-requests.md#best-practices-for-faster-reviews)* guide;
|
the *[How to get faster PR reviews](https://github.com/kubernetes/community/blob/261cb0fd089b64002c91e8eddceebf032462ccd6/contributors/guide/pull-requests.md#best-practices-for-faster-reviews)* guide;
|
||||||
|
@ -40,7 +40,7 @@ gitea embedded list [--include-vendored] [patterns...]
|
|||||||
|
|
||||||
The `--include-vendored` flag makes the command include vendored files, which are
|
The `--include-vendored` flag makes the command include vendored files, which are
|
||||||
normally excluded; that is, files from external libraries that are required for Gitea
|
normally excluded; that is, files from external libraries that are required for Gitea
|
||||||
(e.g. [font-awesome](https://fontawesome.com/), [octicons](https://octicons.github.com/), etc).
|
(e.g. [octicons](https://octicons.github.com/), etc).
|
||||||
|
|
||||||
A list of file search patterns can be provided. Gitea uses [gobwas/glob](https://github.com/gobwas/glob)
|
A list of file search patterns can be provided. Gitea uses [gobwas/glob](https://github.com/gobwas/glob)
|
||||||
for its glob syntax. Here are some examples:
|
for its glob syntax. Here are some examples:
|
||||||
|
@ -3213,7 +3213,7 @@ error.unit_not_allowed = You are not allowed to access this repository section.
|
|||||||
title = Packages
|
title = Packages
|
||||||
desc = Manage repository packages.
|
desc = Manage repository packages.
|
||||||
empty = There are no packages yet.
|
empty = There are no packages yet.
|
||||||
empty.documentation = For more information on the package registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/usage/packages/overview/">the documentation</a>.
|
empty.documentation = For more information on the package registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
empty.repo = Did you upload a package, but it's not shown here? Go to <a href="%[1]s">package settings</a> and link it to this repo.
|
empty.repo = Did you upload a package, but it's not shown here? Go to <a href="%[1]s">package settings</a> and link it to this repo.
|
||||||
filter.type = Type
|
filter.type = Type
|
||||||
filter.type.all = All
|
filter.type.all = All
|
||||||
@ -3240,77 +3240,77 @@ dependency.id = ID
|
|||||||
dependency.version = Version
|
dependency.version = Version
|
||||||
cargo.registry = Setup this registry in the Cargo configuration file (for example <code>~/.cargo/config.toml</code>):
|
cargo.registry = Setup this registry in the Cargo configuration file (for example <code>~/.cargo/config.toml</code>):
|
||||||
cargo.install = To install the package using Cargo, run the following command:
|
cargo.install = To install the package using Cargo, run the following command:
|
||||||
cargo.documentation = For more information on the Cargo registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/cargo/">the documentation</a>.
|
cargo.documentation = For more information on the Cargo registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
cargo.details.repository_site = Repository Site
|
cargo.details.repository_site = Repository Site
|
||||||
cargo.details.documentation_site = Documentation Site
|
cargo.details.documentation_site = Documentation Site
|
||||||
chef.registry = Setup this registry in your <code>~/.chef/config.rb</code> file:
|
chef.registry = Setup this registry in your <code>~/.chef/config.rb</code> file:
|
||||||
chef.install = To install the package, run the following command:
|
chef.install = To install the package, run the following command:
|
||||||
chef.documentation = For more information on the Chef registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/chef/">the documentation</a>.
|
chef.documentation = For more information on the Chef registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
composer.registry = Setup this registry in your <code>~/.composer/config.json</code> file:
|
composer.registry = Setup this registry in your <code>~/.composer/config.json</code> file:
|
||||||
composer.install = To install the package using Composer, run the following command:
|
composer.install = To install the package using Composer, run the following command:
|
||||||
composer.documentation = For more information on the Composer registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/composer/">the documentation</a>.
|
composer.documentation = For more information on the Composer registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
composer.dependencies = Dependencies
|
composer.dependencies = Dependencies
|
||||||
composer.dependencies.development = Development Dependencies
|
composer.dependencies.development = Development Dependencies
|
||||||
conan.details.repository = Repository
|
conan.details.repository = Repository
|
||||||
conan.registry = Setup this registry from the command line:
|
conan.registry = Setup this registry from the command line:
|
||||||
conan.install = To install the package using Conan, run the following command:
|
conan.install = To install the package using Conan, run the following command:
|
||||||
conan.documentation = For more information on the Conan registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/conan/">the documentation</a>.
|
conan.documentation = For more information on the Conan registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
conda.registry = Setup this registry as a Conda repository in your <code>.condarc</code> file:
|
conda.registry = Setup this registry as a Conda repository in your <code>.condarc</code> file:
|
||||||
conda.install = To install the package using Conda, run the following command:
|
conda.install = To install the package using Conda, run the following command:
|
||||||
conda.documentation = For more information on the Conda registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/conda/">the documentation</a>.
|
conda.documentation = For more information on the Conda registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
conda.details.repository_site = Repository Site
|
conda.details.repository_site = Repository Site
|
||||||
conda.details.documentation_site = Documentation Site
|
conda.details.documentation_site = Documentation Site
|
||||||
container.details.type = Image Type
|
container.details.type = Image Type
|
||||||
container.details.platform = Platform
|
container.details.platform = Platform
|
||||||
container.pull = Pull the image from the command line:
|
container.pull = Pull the image from the command line:
|
||||||
container.digest = Digest:
|
container.digest = Digest:
|
||||||
container.documentation = For more information on the Container registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/container/">the documentation</a>.
|
container.documentation = For more information on the Container registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
container.multi_arch = OS / Arch
|
container.multi_arch = OS / Arch
|
||||||
container.layers = Image Layers
|
container.layers = Image Layers
|
||||||
container.labels = Labels
|
container.labels = Labels
|
||||||
container.labels.key = Key
|
container.labels.key = Key
|
||||||
container.labels.value = Value
|
container.labels.value = Value
|
||||||
generic.download = Download package from the command line:
|
generic.download = Download package from the command line:
|
||||||
generic.documentation = For more information on the generic registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/generic">the documentation</a>.
|
generic.documentation = For more information on the generic registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
helm.registry = Setup this registry from the command line:
|
helm.registry = Setup this registry from the command line:
|
||||||
helm.install = To install the package, run the following command:
|
helm.install = To install the package, run the following command:
|
||||||
helm.documentation = For more information on the Helm registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/helm/">the documentation</a>.
|
helm.documentation = For more information on the Helm registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
maven.registry = Setup this registry in your project <code>pom.xml</code> file:
|
maven.registry = Setup this registry in your project <code>pom.xml</code> file:
|
||||||
maven.install = To use the package include the following in the <code>dependencies</code> block in the <code>pom.xml</code> file:
|
maven.install = To use the package include the following in the <code>dependencies</code> block in the <code>pom.xml</code> file:
|
||||||
maven.install2 = Run via command line:
|
maven.install2 = Run via command line:
|
||||||
maven.download = To download the dependency, run via command line:
|
maven.download = To download the dependency, run via command line:
|
||||||
maven.documentation = For more information on the Maven registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/maven/">the documentation</a>.
|
maven.documentation = For more information on the Maven registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
nuget.registry = Setup this registry from the command line:
|
nuget.registry = Setup this registry from the command line:
|
||||||
nuget.install = To install the package using NuGet, run the following command:
|
nuget.install = To install the package using NuGet, run the following command:
|
||||||
nuget.documentation = For more information on the NuGet registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/nuget/">the documentation</a>.
|
nuget.documentation = For more information on the NuGet registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
nuget.dependency.framework = Target Framework
|
nuget.dependency.framework = Target Framework
|
||||||
npm.registry = Setup this registry in your project <code>.npmrc</code> file:
|
npm.registry = Setup this registry in your project <code>.npmrc</code> file:
|
||||||
npm.install = To install the package using npm, run the following command:
|
npm.install = To install the package using npm, run the following command:
|
||||||
npm.install2 = or add it to the package.json file:
|
npm.install2 = or add it to the package.json file:
|
||||||
npm.documentation = For more information on the npm registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/npm/">the documentation</a>.
|
npm.documentation = For more information on the npm registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
npm.dependencies = Dependencies
|
npm.dependencies = Dependencies
|
||||||
npm.dependencies.development = Development Dependencies
|
npm.dependencies.development = Development Dependencies
|
||||||
npm.dependencies.peer = Peer Dependencies
|
npm.dependencies.peer = Peer Dependencies
|
||||||
npm.dependencies.optional = Optional Dependencies
|
npm.dependencies.optional = Optional Dependencies
|
||||||
npm.details.tag = Tag
|
npm.details.tag = Tag
|
||||||
pub.install = To install the package using Dart, run the following command:
|
pub.install = To install the package using Dart, run the following command:
|
||||||
pub.documentation = For more information on the Pub registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/pub/">the documentation</a>.
|
pub.documentation = For more information on the Pub registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
pypi.requires = Requires Python
|
pypi.requires = Requires Python
|
||||||
pypi.install = To install the package using pip, run the following command:
|
pypi.install = To install the package using pip, run the following command:
|
||||||
pypi.documentation = For more information on the PyPI registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/pypi/">the documentation</a>.
|
pypi.documentation = For more information on the PyPI registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
rubygems.install = To install the package using gem, run the following command:
|
rubygems.install = To install the package using gem, run the following command:
|
||||||
rubygems.install2 = or add it to the Gemfile:
|
rubygems.install2 = or add it to the Gemfile:
|
||||||
rubygems.dependencies.runtime = Runtime Dependencies
|
rubygems.dependencies.runtime = Runtime Dependencies
|
||||||
rubygems.dependencies.development = Development Dependencies
|
rubygems.dependencies.development = Development Dependencies
|
||||||
rubygems.required.ruby = Requires Ruby version
|
rubygems.required.ruby = Requires Ruby version
|
||||||
rubygems.required.rubygems = Requires RubyGem version
|
rubygems.required.rubygems = Requires RubyGem version
|
||||||
rubygems.documentation = For more information on the RubyGems registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/rubygems/">the documentation</a>.
|
rubygems.documentation = For more information on the RubyGems registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
swift.registry = Setup this registry from the command line:
|
swift.registry = Setup this registry from the command line:
|
||||||
swift.install = Add the package in your <code>Package.swift</code> file:
|
swift.install = Add the package in your <code>Package.swift</code> file:
|
||||||
swift.install2 = and run the following command:
|
swift.install2 = and run the following command:
|
||||||
swift.documentation = For more information on the Swift registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/swift/">the documentation</a>.
|
swift.documentation = For more information on the Swift registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
vagrant.install = To add a Vagrant box, run the following command:
|
vagrant.install = To add a Vagrant box, run the following command:
|
||||||
vagrant.documentation = For more information on the Vagrant registry, see <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/en-us/packages/vagrant/">the documentation</a>.
|
vagrant.documentation = For more information on the Vagrant registry, see <a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
|
||||||
settings.link = Link this package to a repository
|
settings.link = Link this package to a repository
|
||||||
settings.link.description = If you link a package with a repository, the package is listed in the repository's package list.
|
settings.link.description = If you link a package with a repository, the package is listed in the repository's package list.
|
||||||
settings.link.select = Select Repository
|
settings.link.select = Select Repository
|
||||||
|
@ -125,6 +125,20 @@ less=少
|
|||||||
more=多
|
more=多
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
|
buttons.heading.tooltip=見出し追加
|
||||||
|
buttons.bold.tooltip=太字追加
|
||||||
|
buttons.italic.tooltip=イタリック体追加
|
||||||
|
buttons.quote.tooltip=引用
|
||||||
|
buttons.code.tooltip=コード追加
|
||||||
|
buttons.link.tooltip=リンク追加
|
||||||
|
buttons.list.unordered.tooltip=箇条書き追加
|
||||||
|
buttons.list.ordered.tooltip=番号付きリスト追加
|
||||||
|
buttons.list.task.tooltip=タスクリスト追加
|
||||||
|
buttons.mention.tooltip=ユーザーまたはチームにメンション
|
||||||
|
buttons.ref.tooltip=イシューまたはプルリクエストを参照
|
||||||
|
buttons.switch_to_legacy.tooltip=レガシーエディタを使用する
|
||||||
|
buttons.enable_monospace_font=等幅フォントを有効にする
|
||||||
|
buttons.disable_monospace_font=等幅フォントを無効にする
|
||||||
|
|
||||||
[filter]
|
[filter]
|
||||||
string.asc=A - Z
|
string.asc=A - Z
|
||||||
@ -448,6 +462,7 @@ team_invite.text_3=注: この招待は %[1]s 宛です。 招待に心当たり
|
|||||||
[modal]
|
[modal]
|
||||||
yes=はい
|
yes=はい
|
||||||
no=いいえ
|
no=いいえ
|
||||||
|
confirm=了解
|
||||||
cancel=キャンセル
|
cancel=キャンセル
|
||||||
modify=更新
|
modify=更新
|
||||||
|
|
||||||
|
9
package-lock.json
generated
9
package-lock.json
generated
@ -29,7 +29,6 @@
|
|||||||
"esbuild-loader": "3.0.1",
|
"esbuild-loader": "3.0.1",
|
||||||
"escape-goat": "4.0.0",
|
"escape-goat": "4.0.0",
|
||||||
"fast-glob": "3.2.12",
|
"fast-glob": "3.2.12",
|
||||||
"font-awesome": "4.7.0",
|
|
||||||
"jquery": "3.6.4",
|
"jquery": "3.6.4",
|
||||||
"jquery.are-you-sure": "1.9.0",
|
"jquery.are-you-sure": "1.9.0",
|
||||||
"katex": "0.16.6",
|
"katex": "0.16.6",
|
||||||
@ -4945,14 +4944,6 @@
|
|||||||
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
|
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/font-awesome": {
|
|
||||||
"version": "4.7.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz",
|
|
||||||
"integrity": "sha512-U6kGnykA/6bFmg1M/oT9EkFeIYv7JlX3bozwQJWiiLz6L0w3F5vBVPxHlwyX/vtNq1ckcpRKOB9f2Qal/VtFpg==",
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/for-each": {
|
"node_modules/for-each": {
|
||||||
"version": "0.3.3",
|
"version": "0.3.3",
|
||||||
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
"esbuild-loader": "3.0.1",
|
"esbuild-loader": "3.0.1",
|
||||||
"escape-goat": "4.0.0",
|
"escape-goat": "4.0.0",
|
||||||
"fast-glob": "3.2.12",
|
"fast-glob": "3.2.12",
|
||||||
"font-awesome": "4.7.0",
|
|
||||||
"jquery": "3.6.4",
|
"jquery": "3.6.4",
|
||||||
"jquery.are-you-sure": "1.9.0",
|
"jquery.are-you-sure": "1.9.0",
|
||||||
"katex": "0.16.6",
|
"katex": "0.16.6",
|
||||||
|
@ -55,6 +55,7 @@ type ViewResponse struct {
|
|||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
CanCancel bool `json:"canCancel"`
|
CanCancel bool `json:"canCancel"`
|
||||||
CanApprove bool `json:"canApprove"` // the run needs an approval and the doer has permission to approve
|
CanApprove bool `json:"canApprove"` // the run needs an approval and the doer has permission to approve
|
||||||
|
CanRerun bool `json:"canRerun"`
|
||||||
Done bool `json:"done"`
|
Done bool `json:"done"`
|
||||||
Jobs []*ViewJob `json:"jobs"`
|
Jobs []*ViewJob `json:"jobs"`
|
||||||
Commit ViewCommit `json:"commit"`
|
Commit ViewCommit `json:"commit"`
|
||||||
@ -136,6 +137,7 @@ func ViewPost(ctx *context_module.Context) {
|
|||||||
resp.State.Run.Link = run.Link()
|
resp.State.Run.Link = run.Link()
|
||||||
resp.State.Run.CanCancel = !run.Status.IsDone() && ctx.Repo.CanWrite(unit.TypeActions)
|
resp.State.Run.CanCancel = !run.Status.IsDone() && ctx.Repo.CanWrite(unit.TypeActions)
|
||||||
resp.State.Run.CanApprove = run.NeedApproval && ctx.Repo.CanWrite(unit.TypeActions)
|
resp.State.Run.CanApprove = run.NeedApproval && ctx.Repo.CanWrite(unit.TypeActions)
|
||||||
|
resp.State.Run.CanRerun = run.Status.IsDone() && ctx.Repo.CanWrite(unit.TypeActions)
|
||||||
resp.State.Run.Done = run.Status.IsDone()
|
resp.State.Run.Done = run.Status.IsDone()
|
||||||
resp.State.Run.Jobs = make([]*ViewJob, 0, len(jobs)) // marshal to '[]' instead fo 'null' in json
|
resp.State.Run.Jobs = make([]*ViewJob, 0, len(jobs)) // marshal to '[]' instead fo 'null' in json
|
||||||
resp.State.Run.Status = run.Status.String()
|
resp.State.Run.Status = run.Status.String()
|
||||||
@ -238,7 +240,7 @@ func ViewPost(ctx *context_module.Context) {
|
|||||||
ctx.JSON(http.StatusOK, resp)
|
ctx.JSON(http.StatusOK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Rerun(ctx *context_module.Context) {
|
func RerunOne(ctx *context_module.Context) {
|
||||||
runIndex := ctx.ParamsInt64("run")
|
runIndex := ctx.ParamsInt64("run")
|
||||||
jobIndex := ctx.ParamsInt64("job")
|
jobIndex := ctx.ParamsInt64("job")
|
||||||
|
|
||||||
@ -246,10 +248,37 @@ func Rerun(ctx *context_module.Context) {
|
|||||||
if ctx.Written() {
|
if ctx.Written() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := rerunJob(ctx, job); err != nil {
|
||||||
|
ctx.Error(http.StatusInternalServerError, err.Error())
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx.JSON(http.StatusOK, struct{}{})
|
||||||
|
}
|
||||||
|
|
||||||
|
func RerunAll(ctx *context_module.Context) {
|
||||||
|
runIndex := ctx.ParamsInt64("run")
|
||||||
|
|
||||||
|
_, jobs := getRunJobs(ctx, runIndex, 0)
|
||||||
|
if ctx.Written() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, j := range jobs {
|
||||||
|
if err := rerunJob(ctx, j); err != nil {
|
||||||
|
ctx.Error(http.StatusInternalServerError, err.Error())
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ctx.JSON(http.StatusOK, struct{}{})
|
||||||
|
}
|
||||||
|
|
||||||
|
func rerunJob(ctx *context_module.Context, job *actions_model.ActionRunJob) error {
|
||||||
status := job.Status
|
status := job.Status
|
||||||
if !status.IsDone() {
|
if !status.IsDone() {
|
||||||
ctx.JSON(http.StatusOK, struct{}{})
|
return nil
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
job.TaskID = 0
|
job.TaskID = 0
|
||||||
@ -261,13 +290,11 @@ func Rerun(ctx *context_module.Context) {
|
|||||||
_, err := actions_model.UpdateRunJob(ctx, job, builder.Eq{"status": status}, "task_id", "status", "started", "stopped")
|
_, err := actions_model.UpdateRunJob(ctx, job, builder.Eq{"status": status}, "task_id", "status", "started", "stopped")
|
||||||
return err
|
return err
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
ctx.Error(http.StatusInternalServerError, err.Error())
|
return err
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
actions_service.CreateCommitStatus(ctx, job)
|
actions_service.CreateCommitStatus(ctx, job)
|
||||||
|
return nil
|
||||||
ctx.JSON(http.StatusOK, struct{}{})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func Cancel(ctx *context_module.Context) {
|
func Cancel(ctx *context_module.Context) {
|
||||||
|
@ -1186,10 +1186,11 @@ func registerRoutes(m *web.Route) {
|
|||||||
m.Combo("").
|
m.Combo("").
|
||||||
Get(actions.View).
|
Get(actions.View).
|
||||||
Post(web.Bind(actions.ViewRequest{}), actions.ViewPost)
|
Post(web.Bind(actions.ViewRequest{}), actions.ViewPost)
|
||||||
m.Post("/rerun", reqRepoActionsWriter, actions.Rerun)
|
m.Post("/rerun", reqRepoActionsWriter, actions.RerunOne)
|
||||||
})
|
})
|
||||||
m.Post("/cancel", reqRepoActionsWriter, actions.Cancel)
|
m.Post("/cancel", reqRepoActionsWriter, actions.Cancel)
|
||||||
m.Post("/approve", reqRepoActionsWriter, actions.Approve)
|
m.Post("/approve", reqRepoActionsWriter, actions.Approve)
|
||||||
|
m.Post("/rerun", reqRepoActionsWriter, actions.RerunAll)
|
||||||
})
|
})
|
||||||
}, reqRepoActionsReader, actions.MustEnableActions)
|
}, reqRepoActionsReader, actions.MustEnableActions)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="ui secondary pointing tabular top attached borderless stackable menu new-menu navbar">
|
<div class="ui secondary pointing tabular top attached borderless menu new-menu navbar">
|
||||||
<a class="{{if .PageIsExploreRepositories}}active {{end}}item" href="{{AppSubUrl}}/explore/repos">
|
<a class="{{if .PageIsExploreRepositories}}active {{end}}item" href="{{AppSubUrl}}/explore/repos">
|
||||||
{{svg "octicon-repo"}} {{.locale.Tr "explore.repos"}}
|
{{svg "octicon-repo"}} {{.locale.Tr "explore.repos"}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -18,7 +18,7 @@ git-fetch-with-cli = true</code></pre></div>
|
|||||||
<div class="markup"><pre class="code-block"><code>cargo add {{.PackageDescriptor.Package.Name}}@{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>cargo add {{.PackageDescriptor.Package.Name}}@{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.cargo.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.cargo.documentation" "https://docs.gitea.io/en-us/usage/packages/cargo/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>knife supermarket install {{.PackageDescriptor.Package.Name}} {{.PackageDescriptor.Version.Version}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>knife supermarket install {{.PackageDescriptor.Package.Name}} {{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.chef.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.chef.documentation" "https://docs.gitea.io/en-us/usage/packages/chef/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>composer require {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>composer require {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.composer.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.composer.documentation" "https://docs.gitea.io/en-us/usage/packages/composer/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>conan install --remote=gitea {{.PackageDescriptor.Package.Name}}/{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>conan install --remote=gitea {{.PackageDescriptor.Package.Name}}/{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.conan.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.conan.documentation" "https://docs.gitea.io/en-us/usage/packages/conan/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,7 +16,7 @@ default_channels:
|
|||||||
<div class="markup"><pre class="code-block"><code>conda install{{if $channel}} -c {{$channel}}{{end}} {{.PackageDescriptor.PackageProperties.GetByName "conda.name"}}={{.PackageDescriptor.Version.Version}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>conda install{{if $channel}} -c {{$channel}}{{end}} {{.PackageDescriptor.PackageProperties.GetByName "conda.name"}}={{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.conda.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.conda.documentation" "https://docs.gitea.io/en-us/usage/packages/conda/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>{{range .PackageDescriptor.Files}}{{if eq .File.LowerName "manifest.json"}}{{.Properties.GetByName "container.digest"}}{{end}}{{end}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>{{range .PackageDescriptor.Files}}{{if eq .File.LowerName "manifest.json"}}{{.Properties.GetByName "container.digest"}}{{end}}{{end}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.container.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.container.documentation" "https://docs.gitea.io/en-us/usage/packages/container/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@ curl <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescripto
|
|||||||
</code></pre></div>
|
</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.generic.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.generic.documentation" "https://docs.gitea.io/en-us/usage/packages/generic" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,7 @@ helm repo update</code></pre></div>
|
|||||||
<div class="markup"><pre class="code-block"><code>helm install {{.PackageDescriptor.Package.Name}} {{AppDomain}}/{{.PackageDescriptor.Package.Name}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>helm install {{.PackageDescriptor.Package.Name}} {{AppDomain}}/{{.PackageDescriptor.Package.Name}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.helm.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.helm.documentation" "https://docs.gitea.io/en-us/usage/packages/helm/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>mvn dependency:get -DremoteRepositories=<gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/maven"></gitea-origin-url> -Dartifact={{.PackageDescriptor.Metadata.GroupID}}:{{.PackageDescriptor.Metadata.ArtifactID}}:{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>mvn dependency:get -DremoteRepositories=<gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/maven"></gitea-origin-url> -Dartifact={{.PackageDescriptor.Metadata.GroupID}}:{{.PackageDescriptor.Metadata.ArtifactID}}:{{.PackageDescriptor.Version.Version}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.maven.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.maven.documentation" "https://docs.gitea.io/en-us/usage/packages/maven/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>"{{.PackageDescriptor.Package.Name}}": "{{.PackageDescriptor.Version.Version}}"</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>"{{.PackageDescriptor.Package.Name}}": "{{.PackageDescriptor.Version.Version}}"</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.npm.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.npm.documentation" "https://docs.gitea.io/en-us/usage/packages/npm/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>dotnet add package --source {{.PackageDescriptor.Owner.Name}} --version {{.PackageDescriptor.Version.Version}} {{.PackageDescriptor.Package.Name}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>dotnet add package --source {{.PackageDescriptor.Owner.Name}} --version {{.PackageDescriptor.Version.Version}} {{.PackageDescriptor.Package.Name}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.nuget.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.nuget.documentation" "https://docs.gitea.io/en-us/usage/packages/nuget/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>dart pub add {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}} --hosted-url=<gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/pub/"></gitea-origin-url></code></pre></div>
|
<div class="markup"><pre class="code-block"><code>dart pub add {{.PackageDescriptor.Package.Name}}:{{.PackageDescriptor.Version.Version}} --hosted-url=<gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/pub/"></gitea-origin-url></code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.pub.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.pub.documentation" "https://docs.gitea.io/en-us/usage/packages/pub/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>pip install --index-url <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/pypi/simple/"></gitea-origin-url> {{.PackageDescriptor.Package.Name}}</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>pip install --index-url <gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/pypi/simple/"></gitea-origin-url> {{.PackageDescriptor.Package.Name}}</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.pypi.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.pypi.documentation" "https://docs.gitea.io/en-us/usage/packages/pypi/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
end</code></pre></div>
|
end</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.rubygems.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.rubygems.documentation" "https://docs.gitea.io/en-us/usage/packages/rubygems/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>swift package resolve</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>swift package resolve</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.swift.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.swift.documentation" "https://docs.gitea.io/en-us/usage/packages/swift/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="markup"><pre class="code-block"><code>vagrant box add --box-version {{.PackageDescriptor.Version.Version}} "<gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/vagrant/{{.PackageDescriptor.Package.Name}}"></gitea-origin-url>"</code></pre></div>
|
<div class="markup"><pre class="code-block"><code>vagrant box add --box-version {{.PackageDescriptor.Version.Version}} "<gitea-origin-url data-url="{{AppSubUrl}}/api/packages/{{.PackageDescriptor.Owner.Name}}/vagrant/{{.PackageDescriptor.Package.Name}}"></gitea-origin-url>"</code></pre></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.vagrant.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.vagrant.documentation" "https://docs.gitea.io/en-us/usage/packages/vagrant/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
{{$repoID = .PackageDescriptor.Repository.ID}}
|
{{$repoID = .PackageDescriptor.Repository.ID}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<input type="hidden" name="repo_id" value="{{$repoID}}">
|
<input type="hidden" name="repo_id" value="{{$repoID}}">
|
||||||
<i class="dropdown icon"></i>
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||||
<div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
|
<div class="default text">{{.locale.Tr "packages.settings.link.select"}}</div>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
{{range .Repos}}
|
{{range .Repos}}
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<button class="ui green button">{{$.locale.Tr "packages.owner.settings.cargo.rebuild"}}</button>
|
<button class="ui green button">{{$.locale.Tr "packages.owner.settings.cargo.rebuild"}}</button>
|
||||||
</form>
|
</form>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.cargo.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.cargo.documentation" "https://docs.gitea.io/en-us/usage/packages/cargo/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
{{$packagesUrl := URLJoin .Owner.HomeLink "-" "packages"}}
|
{{$packagesUrl := URLJoin .Owner.HomeLink "-" "packages"}}
|
||||||
<p>{{.locale.Tr "packages.empty.repo" $packagesUrl | Safe}}</p>
|
<p>{{.locale.Tr "packages.empty.repo" $packagesUrl | Safe}}</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
<p>{{.locale.Tr "packages.empty.documentation" | Safe}}</p>
|
<p>{{.locale.Tr "packages.empty.documentation" "https://docs.gitea.io/en-us/usage/packages/overview/" | Safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p>{{.locale.Tr "packages.filter.no_result"}}</p>
|
<p>{{.locale.Tr "packages.filter.no_result"}}</p>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{{template "base/head" .}}
|
{{template "base/head" .}}
|
||||||
<div class="page-content repository">
|
<div class="page-content repository">
|
||||||
{{template "repo/header" .}}
|
{{template "repo/header" .}}
|
||||||
|
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="ui stackable grid">
|
<div class="ui stackable grid">
|
||||||
<div class="four wide column">
|
<div class="four wide column">
|
||||||
@ -12,7 +11,7 @@
|
|||||||
<a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
|
<a class="item{{if eq .Entry.Name $.CurWorkflow}} active{{end}}" href="{{$.Link}}?workflow={{.Entry.Name}}">{{.Entry.Name}}
|
||||||
{{if .ErrMsg}}
|
{{if .ErrMsg}}
|
||||||
<span data-tooltip-content="{{.ErrMsg}}">
|
<span data-tooltip-content="{{.ErrMsg}}">
|
||||||
<i class="warning icon red"></i>
|
{{svg "octicon-alert" 16 "text red"}}
|
||||||
</span>
|
</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
</a>
|
</a>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<div class="image-diff" data-path-before="{{.root.BeforeRawPath}}/{{PathEscapeSegments .file.OldName}}" data-path-after="{{.root.RawPath}}/{{PathEscapeSegments .file.Name}}">
|
<div class="image-diff" data-path-before="{{.root.BeforeRawPath}}/{{PathEscapeSegments .file.OldName}}" data-path-after="{{.root.RawPath}}/{{PathEscapeSegments .file.Name}}">
|
||||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu">
|
<div class="ui secondary pointing tabular top attached borderless menu new-menu">
|
||||||
<div class="new-menu-inner">
|
<div class="new-menu-inner">
|
||||||
<a class="item active" data-tab="diff-side-by-side-{{.file.Index}}">{{.root.locale.Tr "repo.diff.image.side_by_side"}}</a>
|
<a class="item active" data-tab="diff-side-by-side-{{.file.Index}}">{{.root.locale.Tr "repo.diff.image.side_by_side"}}</a>
|
||||||
{{if and .blobBase .blobHead}}
|
{{if and .blobBase .blobHead}}
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
||||||
<input type="hidden" name="page_has_posted" value="true">
|
<input type="hidden" name="page_has_posted" value="true">
|
||||||
<input type="hidden" name="revert" value="{{if eq .CherryPickType "revert"}}true{{else}}false{{end}}">
|
<input type="hidden" name="revert" value="{{if eq .CherryPickType "revert"}}true{{else}}false{{end}}">
|
||||||
<div class="ui secondary menu">
|
<div class="repo-editor-header">
|
||||||
<div class="fitted item treepath">
|
|
||||||
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
||||||
{{$shaurl := printf "%s/commit/%s" $.RepoLink (PathEscape .SHA)}}
|
{{$shaurl := printf "%s/commit/%s" $.RepoLink (PathEscape .SHA)}}
|
||||||
{{$shalink := printf "<a class=\"ui primary sha label\" href=\"%s\">%s</a>" (Escape $shaurl) (ShortSha .SHA)}}
|
{{$shalink := printf "<a class=\"ui primary sha label\" href=\"%s\">%s</a>" (Escape $shaurl) (ShortSha .SHA)}}
|
||||||
@ -24,7 +23,6 @@
|
|||||||
<span>{{.locale.Tr "repo.editor.or"}} <a href="{{$shaurl}}">{{.locale.Tr "repo.editor.cancel_lower"}}</a></span>
|
<span>{{.locale.Tr "repo.editor.or"}} <a href="{{$shaurl}}">{{.locale.Tr "repo.editor.cancel_lower"}}</a></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{{template "repo/editor/commit_form" .}}
|
{{template "repo/editor/commit_form" .}}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
||||||
<input type="hidden" name="page_has_posted" value="{{.PageHasPosted}}">
|
<input type="hidden" name="page_has_posted" value="{{.PageHasPosted}}">
|
||||||
<div class="ui secondary menu">
|
<div class="repo-editor-header">
|
||||||
<div class="fitted item treepath">
|
|
||||||
<div class="ui breadcrumb field{{if .Err_TreePath}} error{{end}}">
|
<div class="ui breadcrumb field{{if .Err_TreePath}} error{{end}}">
|
||||||
<a class="section" href="{{$.BranchLink}}">{{.Repository.Name}}</a>
|
<a class="section" href="{{$.BranchLink}}">{{.Repository.Name}}</a>
|
||||||
{{$n := len .TreeNames}}
|
{{$n := len .TreeNames}}
|
||||||
@ -26,7 +25,6 @@
|
|||||||
<input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required>
|
<input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="ui top attached tabular menu" data-write="write" data-preview="preview" data-diff="diff">
|
<div class="ui top attached tabular menu" data-write="write" data-preview="preview" data-diff="diff">
|
||||||
<a class="active item" data-tab="write">{{svg "octicon-code"}} {{if .IsNewFile}}{{.locale.Tr "repo.editor.new_file"}}{{else}}{{.locale.Tr "repo.editor.edit_file"}}{{end}}</a>
|
<a class="active item" data-tab="write">{{svg "octicon-code"}} {{if .IsNewFile}}{{.locale.Tr "repo.editor.new_file"}}{{else}}{{.locale.Tr "repo.editor.edit_file"}}{{end}}</a>
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
<input type="hidden" name="last_commit" value="{{.last_commit}}">
|
||||||
<input type="hidden" name="page_has_posted" value="{{.PageHasPosted}}">
|
<input type="hidden" name="page_has_posted" value="{{.PageHasPosted}}">
|
||||||
<div class="ui secondary menu">
|
<div class="repo-editor-header">
|
||||||
<div class="fitted item treepath">
|
|
||||||
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
||||||
{{.locale.Tr "repo.editor.patching"}}
|
{{.locale.Tr "repo.editor.patching"}}
|
||||||
<a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a>
|
<a class="section" href="{{$.RepoLink}}">{{.Repository.FullName}}</a>
|
||||||
@ -19,7 +18,6 @@
|
|||||||
<input id="file-name" type="hidden" value="diff.patch">
|
<input id="file-name" type="hidden" value="diff.patch">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="ui top attached tabular menu" data-write="write">
|
<div class="ui top attached tabular menu" data-write="write">
|
||||||
<a class="active item" data-tab="write">{{svg "octicon-code" 16 "gt-mr-2"}}{{.locale.Tr "repo.editor.new_patch"}}</a>
|
<a class="active item" data-tab="write">{{svg "octicon-code" 16 "gt-mr-2"}}{{.locale.Tr "repo.editor.new_patch"}}</a>
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
{{template "base/alert" .}}
|
{{template "base/alert" .}}
|
||||||
<form class="ui comment form" method="post">
|
<form class="ui comment form" method="post">
|
||||||
{{.CsrfTokenHtml}}
|
{{.CsrfTokenHtml}}
|
||||||
<div class="ui secondary menu">
|
<div class="repo-editor-header">
|
||||||
<div class="item fitted treepath">
|
|
||||||
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
<div class="ui breadcrumb field {{if .Err_TreePath}}error{{end}}">
|
||||||
<a class="section" href="{{$.BranchLink}}">{{.Repository.Name}}</a>
|
<a class="section" href="{{$.BranchLink}}">{{.Repository.Name}}</a>
|
||||||
{{$n := len .TreeNames}}
|
{{$n := len .TreeNames}}
|
||||||
@ -24,7 +23,6 @@
|
|||||||
<input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required>
|
<input type="hidden" id="tree_path" name="tree_path" value="{{.TreePath}}" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
{{template "repo/upload" .}}
|
{{template "repo/upload" .}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
<div class="ui icon buttons tiny color-buttons">
|
<div class="ui icon buttons tiny color-buttons">
|
||||||
<div class="ui multiple selection search dropdown" id="flow-select-refs-dropdown">
|
<div class="ui multiple selection search dropdown" id="flow-select-refs-dropdown">
|
||||||
<input type="hidden" name="flow">
|
<input type="hidden" name="flow">
|
||||||
<i class="dropdown icon"></i>
|
|
||||||
<div class="default text">{{.locale.Tr "repo.commit_graph.select"}}</div>
|
<div class="default text">{{.locale.Tr "repo.commit_graph.select"}}</div>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<div class="item" data-value="...flow-hide-pr-refs">
|
<div class="item" data-value="...flow-hide-pr-refs">
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if ne $n 0}}
|
{{if ne $n 0}}
|
||||||
<span class="ui breadcrumb repo-path gt-ml-2">
|
<span class="breadcrumb repo-path gt-ml-2">
|
||||||
<a class="section" href="{{.RepoLink}}/src/{{.BranchNameSubURL}}" title="{{.Repository.Name}}">{{StringUtils.EllipsisString .Repository.Name 30}}</a>
|
<a class="section" href="{{.RepoLink}}/src/{{.BranchNameSubURL}}" title="{{.Repository.Name}}">{{StringUtils.EllipsisString .Repository.Name 30}}</a>
|
||||||
{{- range $i, $v := .TreeNames -}}
|
{{- range $i, $v := .TreeNames -}}
|
||||||
<span class="divider">/</span>
|
<span class="divider">/</span>
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
{{/* FIXME: required validation */}}
|
{{/* FIXME: required validation */}}
|
||||||
<div class="ui fluid selection dropdown {{if .item.Attributes.multiple}}multiple clearable{{end}}">
|
<div class="ui fluid selection dropdown {{if .item.Attributes.multiple}}multiple clearable{{end}}">
|
||||||
<input type="hidden" name="form-field-{{.item.ID}}" value="0">
|
<input type="hidden" name="form-field-{{.item.ID}}" value="0">
|
||||||
<i class="dropdown icon"></i>
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||||
|
{{svg "octicon-x" 14 "remove icon"}}
|
||||||
<div class="default text"></div>
|
<div class="default text"></div>
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
{{range $i, $opt := .item.Attributes.options}}
|
{{range $i, $opt := .item.Attributes.options}}
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
{{.locale.Tr "cancel"}}
|
{{.locale.Tr "cancel"}}
|
||||||
</button>
|
</button>
|
||||||
<button class="ui primary small approve button">
|
<button class="ui primary small approve button">
|
||||||
<i class="save icon"></i>
|
{{svg "fontawesome-save"}}
|
||||||
{{.locale.Tr "save"}}
|
{{.locale.Tr "save"}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -249,7 +249,7 @@
|
|||||||
{{$.locale.Tr "repo.pulls.require_signed_wont_sign"}}
|
{{$.locale.Tr "repo.pulls.require_signed_wont_sign"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<i class="icon unlock"></i>
|
<i class="icon icon-octicon">{{svg "octicon-unlock"}}</i>
|
||||||
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
|
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
@ -274,12 +274,12 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{if .WillSign}}
|
{{if .WillSign}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<i class="icon lock green"></i>
|
<i class="icon icon-octicon">{{svg "octicon-lock" 16 "text green"}}</i>
|
||||||
{{$.locale.Tr "repo.signing.will_sign" .SigningKey}}
|
{{$.locale.Tr "repo.signing.will_sign" .SigningKey}}
|
||||||
</div>
|
</div>
|
||||||
{{else if .IsSigned}}
|
{{else if .IsSigned}}
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<i class="icon unlock"></i>
|
<i class="icon icon-octicon">{{svg "octicon-unlock"}}</i>
|
||||||
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
|
{{$.locale.Tr (printf "repo.signing.wont_sign.%s" .WontSignReason)}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar">
|
<div class="ui secondary pointing tabular top attached borderless menu new-menu navbar">
|
||||||
<div class="new-menu-inner">
|
<div class="new-menu-inner">
|
||||||
<a class="{{if .PageIsOpenIDConnect}}active {{end}}item" href="{{AppSubUrl}}/user/openid/connect">
|
<a class="{{if .PageIsOpenIDConnect}}active {{end}}item" href="{{AppSubUrl}}/user/openid/connect">
|
||||||
{{.locale.Tr "auth.openid_connect_title"}}
|
{{.locale.Tr "auth.openid_connect_title"}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="dashboard-navbar">
|
<div class="dashboard-navbar">
|
||||||
<div class="ui secondary stackable menu g-menu-stackable-scrollable">
|
<div class="ui secondary stackable menu">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="ui floating dropdown jump">
|
<div class="ui floating dropdown jump">
|
||||||
<span class="text truncated-item-container">
|
<span class="text truncated-item-container">
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<button class="ui green button">{{$.locale.Tr "packages.owner.settings.chef.keypair"}}</button>
|
<button class="ui green button">{{$.locale.Tr "packages.owner.settings.chef.keypair"}}</button>
|
||||||
</form>
|
</form>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>{{.locale.Tr "packages.chef.documentation" | Safe}}</label>
|
<label>{{.locale.Tr "packages.chef.documentation" "https://docs.gitea.io/en-us/usage/packages/chef/" | Safe}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -332,8 +332,7 @@ progress::-moz-progress-bar {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a {
|
||||||
.ui.breadcrumb a {
|
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-decoration-skip-ink: all;
|
text-decoration-skip-ink: all;
|
||||||
@ -347,8 +346,7 @@ a.muted,
|
|||||||
a:hover,
|
a:hover,
|
||||||
a.muted:hover,
|
a.muted:hover,
|
||||||
a.muted:hover [class*="color-text"],
|
a.muted:hover [class*="color-text"],
|
||||||
.muted-links a:hover,
|
.muted-links a:hover {
|
||||||
.ui.breadcrumb a:hover {
|
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -737,14 +735,6 @@ a.label,
|
|||||||
padding-bottom: 7.42px !important;
|
padding-bottom: 7.42px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.breadcrumb a:hover {
|
|
||||||
text-decoration: underline !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.breadcrumb .divider {
|
|
||||||
color: var(--color-text-light-2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui.divider:not(.vertical,.horizontal) {
|
.ui.divider:not(.vertical,.horizontal) {
|
||||||
border-top-color: var(--color-secondary) !important;
|
border-top-color: var(--color-secondary) !important;
|
||||||
border-bottom: none !important;
|
border-bottom: none !important;
|
||||||
@ -1925,7 +1915,7 @@ img.ui.avatar,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ui.menu.new-menu .item {
|
.ui.menu.new-menu .item {
|
||||||
margin: 0 !important;
|
margin-bottom: 0 !important; /* reset fomantic's margin, because the active menu has special bottom border */
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
@ -1934,8 +1924,13 @@ img.ui.avatar,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui.menu.new-menu .item:first-child {
|
||||||
|
margin-left: auto; /* "justify-content: center" doesn't work with "overflow: auto", so use margin: auto */
|
||||||
|
}
|
||||||
|
|
||||||
.ui.menu.new-menu .item:last-child {
|
.ui.menu.new-menu .item:last-child {
|
||||||
padding-right: 30px !important;
|
padding-right: 30px !important;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.menu.new-menu::-webkit-scrollbar {
|
.ui.menu.new-menu::-webkit-scrollbar {
|
||||||
@ -2051,6 +2046,13 @@ a.ui.label:hover {
|
|||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui.labels a.active.label:hover,
|
||||||
|
a.ui.active.label:hover {
|
||||||
|
background: var(--color-active);
|
||||||
|
border-color: var(--color-active);
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
.ui.label > .detail .icons {
|
.ui.label > .detail .icons {
|
||||||
margin-right: 0.25em;
|
margin-right: 0.25em;
|
||||||
}
|
}
|
||||||
@ -2603,6 +2605,7 @@ table th[data-sortt-desc] .svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ui.dropdown .svg.dropdown.icon,
|
.ui.dropdown .svg.dropdown.icon,
|
||||||
|
.ui.dropdown .svg.remove.icon,
|
||||||
.svg.dropdown.icon {
|
.svg.dropdown.icon {
|
||||||
margin-top: 0 !important; /* reset the "ui.selection.dropdown > .dropdown.icon {margin-top}", for the Issue Dependencies dropdown */
|
margin-top: 0 !important; /* reset the "ui.selection.dropdown > .dropdown.icon {margin-top}", for the Issue Dependencies dropdown */
|
||||||
margin-right: -0.5rem !important; /* fix up SVG dropdown triangles because Fomantic thinks they are icon fonts */
|
margin-right: -0.5rem !important; /* fix up SVG dropdown triangles because Fomantic thinks they are icon fonts */
|
||||||
@ -2615,6 +2618,16 @@ table th[data-sortt-desc] .svg {
|
|||||||
top: 0 !important; /* reset the ".ui.selection.dropdown > .xxx.icon {top}" if the icon is svg instead of the fomantic icon */
|
top: 0 !important; /* reset the ".ui.selection.dropdown > .xxx.icon {top}" if the icon is svg instead of the fomantic icon */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui.selection.dropdown > .svg.remove.icon {
|
||||||
|
top: .5px;
|
||||||
|
right: 32px;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui.selection.dropdown > .svg.remove.icon:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
.ui.dropdown.no-text > .dropdown.icon {
|
.ui.dropdown.no-text > .dropdown.icon {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
@ -2785,19 +2798,6 @@ table th[data-sortt-desc] .svg {
|
|||||||
height: 15px;
|
height: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.g-menu-stackable-scrollable {
|
|
||||||
overflow-y: hidden;
|
|
||||||
overflow-x: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 767.98px) {
|
|
||||||
/* also respect Fomantic's "stackable" definition, use the same breakpoint to reset our styles */
|
|
||||||
.g-menu-stackable-scrollable {
|
|
||||||
overflow-x: unset;
|
|
||||||
overflow-y: unset;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-text-light-2 {
|
.color-text-light-2 {
|
||||||
color: var(--color-text-light-2);
|
color: var(--color-text-light-2);
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,12 @@
|
|||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.repo-editor-header {
|
||||||
|
display: flex;
|
||||||
|
margin: 1rem 0;
|
||||||
|
padding: 3px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.editor-toolbar {
|
.editor-toolbar {
|
||||||
border-color: var(--color-secondary);
|
border-color: var(--color-secondary);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
.explore .navbar {
|
.explore .navbar {
|
||||||
justify-content: center;
|
|
||||||
margin-bottom: 15px !important;
|
margin-bottom: 15px !important;
|
||||||
background-color: var(--color-navbar) !important;
|
background-color: var(--color-navbar) !important;
|
||||||
border-width: 1px !important;
|
border-width: 1px !important;
|
||||||
|
@ -46,10 +46,6 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#git-graph-container #flow-select-refs-dropdown .dropdown.icon {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#git-graph-container #flow-select-refs-dropdown .default.text {
|
#git-graph-container #flow-select-refs-dropdown .default.text {
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
@import "font-awesome/css/font-awesome.css";
|
|
||||||
|
|
||||||
@import "./animations.css";
|
@import "./animations.css";
|
||||||
@import "./shared/issuelist.css";
|
@import "./shared/issuelist.css";
|
||||||
@import "./shared/repoorg.css";
|
@import "./shared/repoorg.css";
|
||||||
@ -11,6 +9,7 @@
|
|||||||
@import "./features/projects.css";
|
@import "./features/projects.css";
|
||||||
@import "./modules/tippy.css";
|
@import "./modules/tippy.css";
|
||||||
@import "./modules/modal.css";
|
@import "./modules/modal.css";
|
||||||
|
@import "./modules/breadcrumb.css";
|
||||||
@import "./code/linebutton.css";
|
@import "./code/linebutton.css";
|
||||||
@import "./markup/content.css";
|
@import "./markup/content.css";
|
||||||
@import "./markup/codecopy.css";
|
@import "./markup/codecopy.css";
|
||||||
|
9
web_src/css/modules/breadcrumb.css
Normal file
9
web_src/css/modules/breadcrumb.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.breadcrumb .divider {
|
||||||
|
color: var(--color-text-light-2);
|
||||||
|
margin-left: 3px;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.breadcrumb > * {
|
||||||
|
display: inline;
|
||||||
|
}
|
@ -223,11 +223,6 @@
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repository.file.list .repo-path .section,
|
|
||||||
.repository.file.list .repo-path .divider {
|
|
||||||
display: inline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.repository.file.list #repo-files-table {
|
.repository.file.list #repo-files-table {
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
@ -448,16 +443,15 @@
|
|||||||
width: 16px;
|
width: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repository.file.editor .treepath {
|
.repo-editor-header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repository.file.editor .treepath input {
|
.repo-editor-header input {
|
||||||
vertical-align: middle;
|
vertical-align: middle !important;
|
||||||
box-shadow: rgba(0, 0, 0, 0.0745098) 0 1px 2px inset;
|
width: auto !important;
|
||||||
width: inherit;
|
padding: 7px 8px !important;
|
||||||
padding: 7px 8px;
|
margin-right: 5px !important;
|
||||||
margin-right: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.repository.file.editor .tabular.menu .svg {
|
.repository.file.editor .tabular.menu .svg {
|
||||||
|
@ -32,10 +32,6 @@
|
|||||||
color: var(--color-white) !important;
|
color: var(--color-white) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.runner-container .runner-new-menu {
|
|
||||||
width: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.runner-container .task-status-success {
|
.runner-container .task-status-success {
|
||||||
background-color: var(--color-green);
|
background-color: var(--color-green);
|
||||||
color: var(--color-white);
|
color: var(--color-white);
|
||||||
|
9048
web_src/fomantic/build/semantic.css
generated
9048
web_src/fomantic/build/semantic.css
generated
File diff suppressed because it is too large
Load Diff
@ -22,7 +22,6 @@
|
|||||||
"admin": false,
|
"admin": false,
|
||||||
"components": [
|
"components": [
|
||||||
"api",
|
"api",
|
||||||
"breadcrumb",
|
|
||||||
"button",
|
"button",
|
||||||
"card",
|
"card",
|
||||||
"checkbox",
|
"checkbox",
|
||||||
@ -34,7 +33,6 @@
|
|||||||
"form",
|
"form",
|
||||||
"grid",
|
"grid",
|
||||||
"header",
|
"header",
|
||||||
"icon",
|
|
||||||
"input",
|
"input",
|
||||||
"item",
|
"item",
|
||||||
"label",
|
"label",
|
||||||
|
@ -6,11 +6,14 @@
|
|||||||
<div class="action-title">
|
<div class="action-title">
|
||||||
{{ run.title }}
|
{{ run.title }}
|
||||||
</div>
|
</div>
|
||||||
<button class="run_approve" @click="approveRun()" v-if="run.canApprove">
|
<button class="action-control-button text green" @click="approveRun()" v-if="run.canApprove">
|
||||||
<i class="play circle outline icon"/>
|
<SvgIcon name="octicon-play" :size="20"/>
|
||||||
</button>
|
</button>
|
||||||
<button class="run_cancel" @click="cancelRun()" v-else-if="run.canCancel">
|
<button class="action-control-button text red" @click="cancelRun()" v-else-if="run.canCancel">
|
||||||
<i class="stop circle outline icon"/>
|
<SvgIcon name="octicon-x-circle-fill" :size="20"/>
|
||||||
|
</button>
|
||||||
|
<button class="action-control-button text green" @click="rerun()" v-else-if="run.canRerun">
|
||||||
|
<SvgIcon name="octicon-sync" :size="20"/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-commit-summary">
|
<div class="action-commit-summary">
|
||||||
@ -106,6 +109,7 @@ const sfc = {
|
|||||||
status: '',
|
status: '',
|
||||||
canCancel: false,
|
canCancel: false,
|
||||||
canApprove: false,
|
canApprove: false,
|
||||||
|
canRerun: false,
|
||||||
done: false,
|
done: false,
|
||||||
jobs: [
|
jobs: [
|
||||||
// {
|
// {
|
||||||
@ -193,6 +197,11 @@ const sfc = {
|
|||||||
await this.fetchPost(`${jobLink}/rerun`);
|
await this.fetchPost(`${jobLink}/rerun`);
|
||||||
window.location.href = jobLink;
|
window.location.href = jobLink;
|
||||||
},
|
},
|
||||||
|
// rerun workflow
|
||||||
|
async rerun() {
|
||||||
|
await this.fetchPost(`${this.run.link}/rerun`);
|
||||||
|
window.location.href = this.run.link;
|
||||||
|
},
|
||||||
// cancel a run
|
// cancel a run
|
||||||
cancelRun() {
|
cancelRun() {
|
||||||
this.fetchPost(`${this.run.link}/cancel`);
|
this.fetchPost(`${this.run.link}/cancel`);
|
||||||
@ -366,26 +375,16 @@ export function ansiLogToHTML(line) {
|
|||||||
margin: 0 20px 20px 20px;
|
margin: 0 20px 20px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-view-header .run_cancel {
|
.action-view-header .action-control-button {
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--color-red);
|
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: transform 0.2s;
|
transition: transform 0.2s;
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-view-header .run_approve {
|
.action-view-header .action-control-button:hover {
|
||||||
border: none;
|
|
||||||
color: var(--color-green);
|
|
||||||
background-color: transparent;
|
|
||||||
outline: none;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: transform 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-view-header .run_cancel:hover,
|
|
||||||
.action-view-header .run_approve:hover {
|
|
||||||
transform: scale(130%);
|
transform: scale(130%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ import octiconLink from '../../public/img/svg/octicon-link.svg';
|
|||||||
import octiconLock from '../../public/img/svg/octicon-lock.svg';
|
import octiconLock from '../../public/img/svg/octicon-lock.svg';
|
||||||
import octiconMilestone from '../../public/img/svg/octicon-milestone.svg';
|
import octiconMilestone from '../../public/img/svg/octicon-milestone.svg';
|
||||||
import octiconMirror from '../../public/img/svg/octicon-mirror.svg';
|
import octiconMirror from '../../public/img/svg/octicon-mirror.svg';
|
||||||
|
import octiconPlay from '../../public/img/svg/octicon-play.svg';
|
||||||
import octiconProject from '../../public/img/svg/octicon-project.svg';
|
import octiconProject from '../../public/img/svg/octicon-project.svg';
|
||||||
import octiconRepo from '../../public/img/svg/octicon-repo.svg';
|
import octiconRepo from '../../public/img/svg/octicon-repo.svg';
|
||||||
import octiconRepoForked from '../../public/img/svg/octicon-repo-forked.svg';
|
import octiconRepoForked from '../../public/img/svg/octicon-repo-forked.svg';
|
||||||
@ -79,6 +80,7 @@ const svgs = {
|
|||||||
'octicon-milestone': octiconMilestone,
|
'octicon-milestone': octiconMilestone,
|
||||||
'octicon-mirror': octiconMirror,
|
'octicon-mirror': octiconMirror,
|
||||||
'octicon-organization': octiconOrganization,
|
'octicon-organization': octiconOrganization,
|
||||||
|
'octicon-play': octiconPlay,
|
||||||
'octicon-plus': octiconPlus,
|
'octicon-plus': octiconPlus,
|
||||||
'octicon-project': octiconProject,
|
'octicon-project': octiconProject,
|
||||||
'octicon-repo': octiconRepo,
|
'octicon-repo': octiconRepo,
|
||||||
|
@ -40,10 +40,6 @@ const filterCssImport = (url, ...args) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cssFile.includes('font-awesome') && /(eot|ttf|otf|woff|svg)$/.test(importedFile)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -205,9 +201,6 @@ export default {
|
|||||||
},
|
},
|
||||||
emitError: true,
|
emitError: true,
|
||||||
allow: '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)',
|
allow: '(Apache-2.0 OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)',
|
||||||
ignore: [
|
|
||||||
'font-awesome',
|
|
||||||
],
|
|
||||||
}) : new AddAssetPlugin('js/licenses.txt', `Licenses are disabled during development`),
|
}) : new AddAssetPlugin('js/licenses.txt', `Licenses are disabled during development`),
|
||||||
],
|
],
|
||||||
performance: {
|
performance: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user