mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 00:56:00 +07:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11f50919ef | ||
|
|
ea1ebde2f1 | ||
|
|
c4cb559137 | ||
|
|
e8fd59696e | ||
|
|
fc114298ad | ||
|
|
86bda48b79 | ||
|
|
d6a8f5519f | ||
|
|
eda98b817e | ||
|
|
12da966254 |
25
CHANGELOG.md
25
CHANGELOG.md
@@ -2,6 +2,31 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
<a name="0.1.2"></a>
|
||||||
|
## [0.1.2](https://github.com/verdaccio/ui/compare/v0.1.1...v0.1.2) (2019-04-28)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="0.1.1"></a>
|
||||||
|
## [0.1.1](https://github.com/verdaccio/ui/compare/v0.1.0...v0.1.1) (2019-04-28)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* version rendering issue. ([#38](https://github.com/verdaccio/ui/issues/38)) ([e8fd596](https://github.com/verdaccio/ui/commit/e8fd596))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a name="0.1.0"></a>
|
||||||
|
# [0.1.0](https://github.com/verdaccio/ui/compare/v0.0.13...v0.1.0) (2019-04-26)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* accept primary color to be configured ([#36](https://github.com/verdaccio/ui/issues/36)) ([d6a8f55](https://github.com/verdaccio/ui/commit/d6a8f55))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a name="0.0.13"></a>
|
<a name="0.0.13"></a>
|
||||||
## [0.0.13](https://github.com/verdaccio/ui/compare/v0.0.4...v0.0.13) (2019-04-13)
|
## [0.0.13](https://github.com/verdaccio/ui/compare/v0.0.4...v0.0.13) (2019-04-13)
|
||||||
|
|
||||||
|
|||||||
41
README.md
41
README.md
@@ -3,26 +3,15 @@
|
|||||||
|
|
||||||
# Version 4 UI Theme
|
# Version 4 UI Theme
|
||||||
|
|
||||||
[Verdaccio](https://verdaccio.org/) is a simple, **zero-config-required local private npm registry**.
|
[Verdaccio](https://verdaccio.org/) UI is a [theme plugin](https://verdaccio.org/docs/en/dev-plugins#theme-plugin) build in React, Flow and Emotion. It uses Jest and Enzyme for Unit testing.
|
||||||
No need for an entire database just to get started! Verdaccio comes out of the box with
|
|
||||||
**its own tiny database**, and the ability to proxy other registries (eg. npmjs.org),
|
|
||||||
caching the downloaded modules along the way.
|
|
||||||
For those looking to extend their storage capabilities, Verdaccio
|
|
||||||
**supports various community-made plugins to hook into services such as Amazon's s3,
|
|
||||||
Google Cloud Storage** or create your own plugin.
|
|
||||||
|
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/verdaccio)
|
[](https://www.npmjs.com/package/verdaccio)
|
||||||
[](https://www.npmjs.com/package/verdaccio)
|
|
||||||
[](https://www.npmjs.com/package/verdaccio)
|
|
||||||
[](https://verdaccio.org/docs/en/docker.html)
|
[](https://verdaccio.org/docs/en/docker.html)
|
||||||
[](https://opencollective.com/verdaccio)
|
[](https://opencollective.com/verdaccio)
|
||||||
[](https://stackshare.io/verdaccio)
|
[](https://stackshare.io/verdaccio)
|
||||||
|
|
||||||

|
|
||||||
[](https://codecov.io/gh/verdaccio/verdaccio)
|
|
||||||
[](http://chat.verdaccio.org/)
|
[](http://chat.verdaccio.org/)
|
||||||
[](https://www.npmjs.com/package/verdaccio)
|
[](https://www.npmjs.com/package/verdaccio)
|
||||||

|

|
||||||
[](https://crowdin.com/project/verdaccio)
|
[](https://crowdin.com/project/verdaccio)
|
||||||
|
|
||||||
@@ -30,11 +19,27 @@ Google Cloud Storage** or create your own plugin.
|
|||||||
[](https://twitter.com/verdaccio_npm)
|
[](https://twitter.com/verdaccio_npm)
|
||||||
[](https://github.com/verdaccio/verdaccio/stargazers)
|
[](https://github.com/verdaccio/verdaccio/stargazers)
|
||||||
|
|
||||||
đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§
|
## Contributing
|
||||||
|
|
||||||
**This is a maintenance branch, only bug fixing, minor changes or security updates**
|
We use `>=yarn@1.13.0`, keep on mind we use lock file.
|
||||||
|
|
||||||
|
For development run the following command, it will execute `webpack` and `verdaccio` to
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn dev
|
||||||
|
```
|
||||||
|
The configuration file is located on `tools/_config.yaml`.
|
||||||
|
|
||||||
|
Run linting tooling and test to check your code is clean before commit.
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn lint && yarn test
|
||||||
|
```
|
||||||
|
|
||||||
|
Remember we follow the [the Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0-beta.4/).
|
||||||
|
|
||||||
|
🤓 Feel free to participate in code reviews, let us know if you want to participate in this plugin.
|
||||||
|
|
||||||
đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§đźš§
|
|
||||||
|
|
||||||
## Open Collective Sponsors
|
## Open Collective Sponsors
|
||||||
|
|
||||||
@@ -63,7 +68,7 @@ This project exists thanks to all the people who contribute. [[Contribute](CONTR
|
|||||||
|
|
||||||
[](../../graphs/contributors)
|
[](../../graphs/contributors)
|
||||||
|
|
||||||
### FAQ / Contact / Troubleshoot
|
### FAQ / Contact / Troubleshoot
|
||||||
|
|
||||||
If you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for.
|
If you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@verdaccio/ui-theme",
|
"name": "@verdaccio/ui-theme",
|
||||||
"version": "0.0.13",
|
"version": "0.1.2",
|
||||||
"description": "Verdaccio User Interface",
|
"description": "Verdaccio User Interface",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Verdaccio Core Team"
|
"name": "Verdaccio Core Team"
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import ListItem from '@material-ui/core/ListItem/index';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { DIST_TAGS } from '../../../lib/constants';
|
import { DIST_TAGS } from '../../../lib/constants';
|
||||||
|
|
||||||
|
const NOT_AVAILABLE = 'Not available';
|
||||||
|
|
||||||
class Versions extends React.PureComponent<any> {
|
class Versions extends React.PureComponent<any> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
@@ -32,7 +34,8 @@ class Versions extends React.PureComponent<any> {
|
|||||||
<ListItem className={'version-item'} key={version}>
|
<ListItem className={'version-item'} key={version}>
|
||||||
<ListItemText>{version}</ListItemText>
|
<ListItemText>{version}</ListItemText>
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<ListItemText>{isVersion && timeMap[version] ? `${formatDateDistance(timeMap[version])} ago` : packages[version]}</ListItemText>
|
{isVersion && <ListItemText>{timeMap[version] ? `${formatDateDistance(timeMap[version])} ago` : NOT_AVAILABLE}</ListItemText>}
|
||||||
|
{isVersion === false && <ListItemText>{packages[version]}</ListItemText>}
|
||||||
</ListItem>
|
</ListItem>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
window.VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/';
|
window.VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/';
|
||||||
window.VERDACCIO_SCOPE = '<%= htmlWebpackPlugin.options.scope %>';
|
window.VERDACCIO_SCOPE = '<%= htmlWebpackPlugin.options.scope %>';
|
||||||
window.VERDACCIO_LOGO = '<%= htmlWebpackPlugin.options.logo %>';
|
window.VERDACCIO_LOGO = '<%= htmlWebpackPlugin.options.logo %>';
|
||||||
|
window.VERDACCIO_PRIMARY_COLOR = '<%= htmlWebpackPlugin.options.primary_color %>';
|
||||||
window.VERDACCIO_VERSION = '<%= htmlWebpackPlugin.options.version_app %>';
|
window.VERDACCIO_VERSION = '<%= htmlWebpackPlugin.options.version_app %>';
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const colors = {
|
|||||||
// Main colors
|
// Main colors
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
primary: '#4b5e40',
|
primary: window.VERDACCIO_PRIMARY_COLOR || '#4b5e40',
|
||||||
secondary: '#20232a',
|
secondary: '#20232a',
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ const prodConf = {
|
|||||||
title: 'ToReplaceByTitle',
|
title: 'ToReplaceByTitle',
|
||||||
scope: 'ToReplaceByScope',
|
scope: 'ToReplaceByScope',
|
||||||
logo: 'ToReplaceByLogo',
|
logo: 'ToReplaceByLogo',
|
||||||
|
primary_color: 'ToReplaceByPrimaryColor',
|
||||||
filename: 'index.html',
|
filename: 'index.html',
|
||||||
favicon: `${env.SRC_ROOT}/webui/template/favicon.ico`,
|
favicon: `${env.SRC_ROOT}/webui/template/favicon.ico`,
|
||||||
verdaccioURL: 'ToReplaceByVerdaccio',
|
verdaccioURL: 'ToReplaceByVerdaccio',
|
||||||
|
|||||||
Reference in New Issue
Block a user