Compare commits
10 Commits
adaca161e2
...
05cdc66695
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
05cdc66695 | ||
|
|
c85c865987 | ||
|
|
c97ebf1517 | ||
|
|
829fab7b0d | ||
|
|
5d1b3f0a3e | ||
|
|
478c1ef015 | ||
|
|
dfa8db23dc | ||
|
|
aa57d55ead | ||
|
|
48a6b8ce7d | ||
|
|
c309f458cb |
27
README.en.md
27
README.en.md
@ -1,22 +1,7 @@
|
||||
# ovirt-web-ui
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
VM Portal for oVirt.
|
||||
|
||||
#### Contribution
|
||||
|
||||
@ -24,13 +9,3 @@ Software architecture description
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
|
||||
30
README.md
30
README.md
@ -1,25 +1,7 @@
|
||||
# ovirt-web-ui
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
用于oVirt的VM Portal。
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
@ -27,13 +9,3 @@
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
|
||||
58
Simplify-package-exports.patch
Normal file
58
Simplify-package-exports.patch
Normal file
@ -0,0 +1,58 @@
|
||||
From 4fbcd79878c92de8677200c16f0dee9c9d4a58ab Mon Sep 17 00:00:00 2001
|
||||
From: Vlad Shilov <omgovich@ya.ru>
|
||||
Date: Thu, 20 May 2021 02:25:21 +0300
|
||||
Subject: [PATCH] Simplify package "exports"
|
||||
|
||||
---
|
||||
package.json | 38 ++++++++++++++++++++++++++++++++++----
|
||||
1 file changed, 34 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/package.json b/package.json
|
||||
index 24c4fb5..9721894 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -32,10 +32,40 @@
|
||||
"require": "./index.js",
|
||||
"default": "./index.mjs"
|
||||
},
|
||||
- "./plugins/*": {
|
||||
- "import": "./plugins/*.mjs",
|
||||
- "require": "./plugins/*.js",
|
||||
- "default": "./plugins/*.mjs"
|
||||
+ "./plugins/a11y": {
|
||||
+ "import": "./plugins/a11y.mjs",
|
||||
+ "require": "./plugins/a11y.js",
|
||||
+ "default": "./plugins/a11y.mjs"
|
||||
+ },
|
||||
+ "./plugins/hwb": {
|
||||
+ "import": "./plugins/hwb.mjs",
|
||||
+ "require": "./plugins/hwb.js",
|
||||
+ "default": "./plugins/hwb.mjs"
|
||||
+ },
|
||||
+ "./plugins/lab": {
|
||||
+ "import": "./plugins/lab.mjs",
|
||||
+ "require": "./plugins/lab.js",
|
||||
+ "default": "./plugins/lab.mjs"
|
||||
+ },
|
||||
+ "./plugins/lch": {
|
||||
+ "import": "./plugins/lch.mjs",
|
||||
+ "require": "./plugins/lch.js",
|
||||
+ "default": "./plugins/lch.mjs"
|
||||
+ },
|
||||
+ "./plugins/mix": {
|
||||
+ "import": "./plugins/mix.mjs",
|
||||
+ "require": "./plugins/mix.js",
|
||||
+ "default": "./plugins/mix.mjs"
|
||||
+ },
|
||||
+ "./plugins/names": {
|
||||
+ "import": "./plugins/names.mjs",
|
||||
+ "require": "./plugins/names.js",
|
||||
+ "default": "./plugins/names.mjs"
|
||||
+ },
|
||||
+ "./plugins/xyz": {
|
||||
+ "import": "./plugins/xyz.mjs",
|
||||
+ "require": "./plugins/xyz.js",
|
||||
+ "default": "./plugins/xyz.mjs"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
BIN
ovirt-web-ui-1.7.0.tar.gz
Normal file
BIN
ovirt-web-ui-1.7.0.tar.gz
Normal file
Binary file not shown.
75
ovirt-web-ui.spec
Normal file
75
ovirt-web-ui.spec
Normal file
@ -0,0 +1,75 @@
|
||||
%global product oVirt
|
||||
|
||||
%global use_rhev %( test -z @RHEV@ && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
|
||||
%global source_basename ovirt-web-ui
|
||||
|
||||
Name: ovirt-web-ui
|
||||
Version: 1.7.0
|
||||
Release: 3
|
||||
Summary: VM Portal for %{product}
|
||||
License: Apache 2.0
|
||||
URL: https://github.com/oVirt/ovirt-web-ui
|
||||
Source0: https://github.com/oVirt/ovirt-web-ui/archive/%{source_basename}-1.7.0.tar.gz
|
||||
#https://patch-diff.githubusercontent.com/raw/omgovich/colord/pull/52.patch
|
||||
patch1: Simplify-package-exports.patch
|
||||
BuildArch: noarch
|
||||
|
||||
# nodejs-modules embeds yarn and requires nodejs
|
||||
BuildRequires: ovirt-engine-nodejs-modules >= 2.0.53-1
|
||||
|
||||
%description
|
||||
This package provides the VM Portal for %{product}.
|
||||
|
||||
%prep
|
||||
%setup -q -n"%{source_basename}-%{version}"
|
||||
rpm -qa | grep ovirt-engine-nodejs
|
||||
|
||||
echo "=== Workaround: 'yarn check' is recently failing on requiring webpack >= v2. Manually"
|
||||
echo "=== verified that this is ok for recent code base but may be a real failure in the"
|
||||
echo "=== future. Please watch carefully for other potential types of errors."
|
||||
IGNORE_YARN_CHECK=1 source /usr/share/ovirt-engine-nodejs-modules/setup-env.sh
|
||||
pushd node_modules/colord
|
||||
%patch1 -p1
|
||||
popd
|
||||
|
||||
%build
|
||||
export PATH="%{_datadir}/ovirt-engine-nodejs/bin:%{_datadir}/ovirt-engine-nodejs-modules/bin:${PATH}"
|
||||
%configure
|
||||
|
||||
# Change hardcoded deafult hash algorithm from legacy md4 to sha512
|
||||
sed -i 's/md4/sha512/g' node_modules/webpack/lib/*.js
|
||||
sed -i 's/md4/sha512/g' node_modules/webpack/lib/optimize/*.js
|
||||
sed -i 's/md4/sha512/g' node_modules/copy-webpack-plugin/dist/*.js
|
||||
sed -i 's/md4/sha512/g' node_modules/terser-webpack-plugin/dist/*.js
|
||||
sed -i 's/md4/sha512/g' node_modules/loader-utils/lib/index.js
|
||||
sed -i 's/md4/sha512/g' node_modules/loader-utils/lib/*.js
|
||||
sed -i 's/md4/sha512/g' node_modules/babel-loader/lib/cache.js
|
||||
sed -i 's/md4/sha512/g' node_modules/webpack/node_modules/terser-webpack-plugin/dist/index.js
|
||||
|
||||
make
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_datarootdir}/ovirt-web-ui
|
||||
%{_datarootdir}/ovirt-engine/ovirt-web-ui.war
|
||||
%{_sysconfdir}/ovirt-engine/engine.conf.d/50-ovirt-web-ui.conf
|
||||
%{_sysconfdir}/ovirt-web-ui/branding/00-ovirt.brand
|
||||
|
||||
%changelog
|
||||
* Fri Mar 03 2023 lijunwei <lijunwei@kylinos.cn> - 1.7.0-3
|
||||
- Change hardcoded deafult hash algorithm from legacy md4 to sha512
|
||||
|
||||
* Wed May 18 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.7.0-2
|
||||
- Add Simplify-package-exports.patch
|
||||
|
||||
* Tue Sep 7 2021 liyanan <liyanan32@huawei.com> - 1.7.0-1
|
||||
- update to 1.7.0
|
||||
|
||||
* Thu Mar 5 2020 di.wang <di.wang@cs2c.com.cn> - 1.6.0-1
|
||||
- Package Initialization
|
||||
4
ovirt-web-ui.yaml
Normal file
4
ovirt-web-ui.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: oVirt/ovirt-web-ui
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user