refactor: Update 'core' app references to 'admin'

This commit is contained in:
Susmitha Girumala committed 2020-11-17 11:15:42 -05:00
1 parent 83dadb01b5
commit b5cfd63de5
13 files changed
+35 -33

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ ui:
- ui/**/* - ui/**/*
admin: admin:
- ui/core/**/* - ui/admin/**/*
desktop: desktop:
- ui/desktop/**/* - ui/desktop/**/*
+9 -9
View File
@@ -21,7 +21,7 @@ subproject, e.g. running or testing.
- [Contributing](#contributing) - [Contributing](#contributing)
- [Branching](#branching) - [Branching](#branching)
- [Building ToC](#building-toc) - [Building ToC](#building-toc)
- [Building Core UI for Production](#building-core-ui-for-production) - [Building Admin UI for Production](#building-admin-ui-for-production)
- [Building with a Container](#building-with-a-container) - [Building with a Container](#building-with-a-container)
- [Committing](#committing) - [Committing](#committing)
- [License Checking](#license-checking) - [License Checking](#license-checking)
@@ -57,7 +57,7 @@ List of available project commands. `yarn run <command-name>`
| Command | Description | | Command | Description |
|---------------------|---| |---------------------|---|
| build | Builds Core UI. | | build | Builds Admin UI. |
| test | Runs tests in CI mode. | | test | Runs tests in CI mode. |
| commit | Replaces `git commit`, ensures compliance, audit, lint, and test checks pass before commit is allowed and normalizes commit messages across authors. | | commit | Replaces `git commit`, ensures compliance, audit, lint, and test checks pass before commit is allowed and normalizes commit messages across authors. |
| lint | Runs ember-template-lint on all of the hbs, js, and sass files. | | lint | Runs ember-template-lint on all of the hbs, js, and sass files. |
@@ -77,20 +77,20 @@ To autogenerate a ToC (table of contents) for this README,
run `yarn doc:toc`. Please update the ToC whenever editing the structure run `yarn doc:toc`. Please update the ToC whenever editing the structure
of README. of README.
### Building Core UI for Production ### Building Admin UI for Production
See ui/core/README.md Building for Production for more information on how to See ui/admin/README.md Building for Production for more information on how to
build the Core UI. Be sure to set build-related environment variables as build the Admin UI. Be sure to set build-related environment variables as
necessary for your target environment, as described in the Core UI readme. necessary for your target environment, as described in the Admin UI readme.
To quickly produce a production build of Core UI, run from this folder: To quickly produce a production build of Admin UI, run from this folder:
```bash ```bash
yarn install yarn install
yarn build yarn build
``` ```
Assets are saved to `ui/core/dist/`. Assets are saved to `ui/admin/dist/`.
#### Building with a Container #### Building with a Container
@@ -100,7 +100,7 @@ Optionally, you may build the UI within a container. Execute the following comm
docker-compose -f docker-compose-embedding.yml run build docker-compose -f docker-compose-embedding.yml run build
``` ```
Assets are saved to `ui/core/dist/`. Assets are saved to `ui/admin/dist/`.
### Committing ### Committing
+3 -3
View File
@@ -13,17 +13,17 @@ services:
- 'icu_addons_api_node_modules:/src/addons/api/node_modules' - 'icu_addons_api_node_modules:/src/addons/api/node_modules'
- 'icu_addons_auth_node_modules:/src/addons/auth/node_modules' - 'icu_addons_auth_node_modules:/src/addons/auth/node_modules'
- 'icu_addons_rose_node_modules:/src/addons/rose/node_modules' - 'icu_addons_rose_node_modules:/src/addons/rose/node_modules'
- 'icu_ui_core_node_modules:/src/ui/core/node_modules' - 'icu_ui_admin_node_modules:/src/ui/admin/node_modules'
working_dir: /src working_dir: /src
build: build:
<<: *node <<: *node
entrypoint: bash entrypoint: bash
command: '-c "yarn install && yarn build:ui:core && chmod -R 777 ."' command: '-c "yarn install && yarn build:ui:admin && chmod -R 777 ."'
volumes: volumes:
icu_node_modules: icu_node_modules:
icu_addons_api_node_modules: icu_addons_api_node_modules:
icu_addons_auth_node_modules: icu_addons_auth_node_modules:
icu_addons_rose_node_modules: icu_addons_rose_node_modules:
icu_ui_core_node_modules: icu_ui_admin_node_modules:
+5 -5
View File
@@ -16,25 +16,25 @@
] ]
}, },
"scripts": { "scripts": {
"build": "yarn build:ui:core", "build": "yarn build:ui:admin",
"build:ui:core": "cd ui/core && yarn build", "build:ui:admin": "cd ui/admin && yarn build",
"build:ui:desktop": "cd ui/desktop && yarn build", "build:ui:desktop": "cd ui/desktop && yarn build",
"lint": "npm-run-all lint:*", "lint": "npm-run-all lint:*",
"lint:addons-api": "cd addons/api && yarn lint", "lint:addons-api": "cd addons/api && yarn lint",
"lint:addons-auth": "cd addons/auth && yarn lint", "lint:addons-auth": "cd addons/auth && yarn lint",
"lint:addons-rose": "cd addons/rose && yarn lint", "lint:addons-rose": "cd addons/rose && yarn lint",
"lint:ui-core": "cd ui/core && yarn lint", "lint:ui-admin": "cd ui/admin && yarn lint",
"lint:ui-desktop": "cd ui/desktop && yarn lint", "lint:ui-desktop": "cd ui/desktop && yarn lint",
"test": "npm-run-all test:*", "test": "npm-run-all test:*",
"test:addons-api": "cd addons/api && yarn test", "test:addons-api": "cd addons/api && yarn test",
"test:addons-auth": "cd addons/auth && yarn test", "test:addons-auth": "cd addons/auth && yarn test",
"test:addons-rose": "cd addons/rose && yarn test", "test:addons-rose": "cd addons/rose && yarn test",
"test:ui-core": "cd ui/core && yarn test", "test:ui-admin": "cd ui/admin && yarn test",
"test:ui-desktop": "cd ui/desktop && yarn test", "test:ui-desktop": "cd ui/desktop && yarn test",
"compliance:audit": "bash ./scripts/yarn-audit.sh", "compliance:audit": "bash ./scripts/yarn-audit.sh",
"precommit": "yarn compliance:licenses && yarn compliance:audit && yarn lint && yarn test", "precommit": "yarn compliance:licenses && yarn compliance:audit && yarn lint && yarn test",
"commit": "git-cz", "commit": "git-cz",
"compliance:licenses": "license-checker --onlyAllow 'Apache*;Apache License, Version 2.0;Apache-2.0;Apache 2.0;Artistic-2.0;BSD;BSD-3-Clause;CC-BY-3.0;CC-BY-4.0;CC0-1.0;ISC;MIT;MPL-2.0;Public Domain;Unicode-TOU;Unlicense;WTFPL' --excludePackages 'boundary-ui;core@0.0.0;desktop@0.0.0;base64-js@0.0.2'", "compliance:licenses": "license-checker --onlyAllow 'Apache*;Apache License, Version 2.0;Apache-2.0;Apache 2.0;Artistic-2.0;BSD;BSD-3-Clause;CC-BY-3.0;CC-BY-4.0;CC0-1.0;ISC;MIT;MPL-2.0;Public Domain;Unicode-TOU;Unlicense;WTFPL' --excludePackages 'boundary-ui;admin@0.0.0;desktop@0.0.0;base64-js@0.0.2'",
"doc:toc": "doctoc README.md" "doc:toc": "doctoc README.md"
}, },
"devDependencies": { "devDependencies": {
+2 -2
View File
@@ -1,6 +1,6 @@
# Core UI # Admin UI
The core UI for Boundary. The admin UI for Boundary.
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
+1 -1
View File
@@ -1,7 +1,7 @@
import Application from '@ember/application'; import Application from '@ember/application';
import Resolver from 'ember-resolver'; import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers'; import loadInitializers from 'ember-load-initializers';
import config from 'core/config/environment'; import config from 'admin/config/environment';
export default class App extends Application { export default class App extends Application {
modulePrefix = config.modulePrefix; modulePrefix = config.modulePrefix;
+3 -3
View File
@@ -3,14 +3,14 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Core</title> <title>Admin</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}} {{content-for "head"}}
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/core.css"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/admin.css">
<link rel="icon" type="image/svg+xml" href="{{rootURL}}logo-app.svg"> <link rel="icon" type="image/svg+xml" href="{{rootURL}}logo-app.svg">
@@ -20,7 +20,7 @@
{{content-for "body"}} {{content-for "body"}}
<script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/core.js"></script> <script src="{{rootURL}}assets/admin.js"></script>
{{content-for "body-footer"}} {{content-for "body-footer"}}
</body> </body>
+1 -1
View File
@@ -1,5 +1,5 @@
import EmberRouter from '@ember/routing/router'; import EmberRouter from '@ember/routing/router';
import config from 'core/config/environment'; import config from 'admin/config/environment';
export default class Router extends EmberRouter { export default class Router extends EmberRouter {
location = config.locationType; location = config.locationType;
+1 -1
View File
@@ -5,7 +5,7 @@ const API_HOST = process.env.API_HOST || '';
module.exports = function (environment) { module.exports = function (environment) {
let ENV = { let ENV = {
modulePrefix: 'core', modulePrefix: 'admin',
environment, environment,
rootURL: '/', rootURL: '/',
locationType: 'auto', locationType: 'auto',
+2 -2
View File
@@ -1,8 +1,8 @@
{ {
"name": "core", "name": "admin",
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"description": "Core UI for Boundary.", "description": "Admin UI for Boundary.",
"license": "MPL-2.0", "license": "MPL-2.0",
"author": "HashiCorp", "author": "HashiCorp",
"directories": { "directories": {
+3 -3
View File
@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Core Tests</title> <title>Admin Tests</title>
<meta name="description" content=""> <meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -11,7 +11,7 @@
{{content-for "test-head"}} {{content-for "test-head"}}
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css"> <link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link rel="stylesheet" href="{{rootURL}}assets/core.css"> <link rel="stylesheet" href="{{rootURL}}assets/admin.css">
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css"> <link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
{{content-for "head-footer"}} {{content-for "head-footer"}}
@@ -24,7 +24,7 @@
<script src="/testem.js" integrity=""></script> <script src="/testem.js" integrity=""></script>
<script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/test-support.js"></script> <script src="{{rootURL}}assets/test-support.js"></script>
<script src="{{rootURL}}assets/core.js"></script> <script src="{{rootURL}}assets/admin.js"></script>
<script src="{{rootURL}}assets/tests.js"></script> <script src="{{rootURL}}assets/tests.js"></script>
{{content-for "body-footer"}} {{content-for "body-footer"}}
+2 -2
View File
@@ -1,5 +1,5 @@
import Application from 'core/app'; import Application from '../app';
import config from 'core/config/environment'; import config from '../config/environment';
import { setApplication } from '@ember/test-helpers'; import { setApplication } from '@ember/test-helpers';
//import { start } from 'ember-qunit'; //import { start } from 'ember-qunit';
import start from 'ember-exam/test-support/start'; import start from 'ember-exam/test-support/start';
+2
View File
@@ -135,6 +135,7 @@
0% { 0% {
background-position: -100% 0; background-position: -100% 0;
} }
100% { 100% {
background-position: -200% 0; background-position: -200% 0;
} }
@@ -162,6 +163,7 @@
0% { 0% {
background-color: var(--action-subtler-1); background-color: var(--action-subtler-1);
} }
100% { 100% {
background-color: transparent; background-color: transparent;
} }