Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
rename admin panel to frontend (#997)
Browse files Browse the repository at this point in the history
* rename to frontend

* test rename
  • Loading branch information
jarindr authored May 10, 2019
1 parent 7214fd0 commit d9d6802
Show file tree
Hide file tree
Showing 393 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
- var/
- src/deps
- src/_build
- src/apps/admin_panel/assets/node_modules
- src/apps/frontend/assets/node_modules
- notify_slack_failure

lint:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ IMAGE_NAME ?= "omisego/ewallet:latest"
IMAGE_BUILDER ?= "omisegoimages/ewallet-builder:v1.2"
IMAGE_BUILD_DIR ?= $(PWD)

ASSETS ?= cd apps/admin_panel/assets &&
ASSETS ?= cd apps/frontend/assets &&
ENV_DEV ?= env MIX_ENV=dev
ENV_TEST ?= env MIX_ENV=test
ENV_PROD ?= env MIX_ENV=prod
Expand Down Expand Up @@ -37,8 +37,8 @@ clean-ewallet:
rm -rf deps/

clean-assets:
rm -rf apps/admin_panel/assets/node_modules
rm -rf apps/admin_panel/priv/static
rm -rf apps/frontend/assets/node_modules
rm -rf apps/frontend/priv/static

clean-test-assets:
rm -rf private/
Expand Down Expand Up @@ -108,7 +108,7 @@ docker-prod:
docker run --rm -it \
-v $(PWD):/app \
-v $(IMAGE_BUILD_DIR)/deps:/app/deps \
-v $(IMAGE_BUILD_DIR)/apps/admin_panel/assets/node_modules:/app/apps/admin_panel/assets/node_modules \
-v $(IMAGE_BUILD_DIR)/apps/frontend/assets/node_modules:/app/apps/frontend/assets/node_modules \
-u root \
--entrypoint /bin/sh \
$(IMAGE_BUILDER) \
Expand Down
3 changes: 0 additions & 3 deletions apps/admin_panel/config/prod.exs

This file was deleted.

2 changes: 1 addition & 1 deletion apps/ewallet/lib/mix/tasks/omg.deps.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule Mix.Tasks.Omg.Deps do
System.cmd(
"yarn",
["install", "--non-interactive", "--color=always"],
cd: Path.expand("../../../../admin_panel/assets/", __DIR__),
cd: Path.expand("../../../../frontend/assets/", __DIR__),
into: IO.stream(:stdio, :line),
stderr_to_stdout: true
)
Expand Down
4 changes: 2 additions & 2 deletions apps/ewallet/priv/repo/report_minimum.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CLI.print("""
We have just seeded your eWallet system with an API key and an Admin Panel user.
Now it's your turn to login to your Admin Panel with the following credentials:
- Login URL : `#{admin_panel_url}`
- Login URL : `#{frontend_url}/admin`
- Email : `#{admin.email}`
- Password : `#{admin.password || "<password obscured>"}`
Expand All @@ -58,7 +58,7 @@ CLI.print("""
- Create other Admin Panel users
- Manage access and secret keys for your application servers to connect to OmiseGO eWallet API
- Manage API keys for your mobile apps and the Admin Panel
- Always come back and access your Admin Panel at #{admin_panel_url}
- Always come back and access your Admin Panel at #{frontend_url}/admin
- etc.
## Manage your eWallet system via the Admin API
Expand Down
4 changes: 2 additions & 2 deletions apps/ewallet_db/priv/repo/reporters/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule EWalletDB.Repo.Reporters.SeedsReporter do

def run(writer, args) do
base_url = Config.get("base_url", "https://example.com")
admin_panel_url = base_url <> "/admin"
frontend_url = base_url <> "/admin"
admin_api_url = base_url <> "/api/admin"
admin_api_swagger_ui_url = base_url <> "/api/admin/docs"

Expand All @@ -35,7 +35,7 @@ defmodule EWalletDB.Repo.Reporters.SeedsReporter do
To start using the Admin Panel, login with the following credentials:
- Login URL : `#{admin_panel_url}`
- Login URL : `#{frontend_url}/admin`
- Email : `#{admin_email}`
- Password : `#{admin_password}`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Running the Admin Panel in development mode locally allows you to modify the cod

### Development

1. You will first need to create the `.env` file located under the project's root directory `/apps/admin_panel/assets/` of the app with your own keys. There are 2 keys that is needed to be able to run and connect to the server `BACKEND_API_URL` and `BACKEND_WEBSOCKET_URL`
1. You will first need to create the `.env` file located under the project's root directory `/apps/frontend/assets/` of the app with your own keys. There are 2 keys that is needed to be able to run and connect to the server `BACKEND_API_URL` and `BACKEND_WEBSOCKET_URL`

Example **.env** file
```
Expand All @@ -23,7 +23,7 @@ BACKEND_WEBSOCKET_URL=https://omisego.network/admin/socket
_That's all, now you are ready to customize the admin panel as your own need._

### Production
To build the production app, use `npm run build` this will build a production version of admin panel and output in `/apps/admin_panel/priv/static` for the phoenix application to serve. **Note that the output path is the root of the eWallet app not the admin panel**
To build the production app, use `npm run build` this will build a production version of admin panel and output in `/apps/frontend/priv/static` for the phoenix application to serve. **Note that the output path is the root of the eWallet app not the admin panel**

### Testing
For unit test, just run `npm run test` and for linting run `npm run lint`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit d9d6802

Please sign in to comment.