Skip to content

Commit 5404e0b

Browse files
replace set variables
1 parent 0f321bf commit 5404e0b

File tree

10 files changed

+23
-22
lines changed

10 files changed

+23
-22
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: github.ref == 'refs/heads/main'
2424
uses: elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4
2525
with:
26-
name: gridsuite/gridXXX-app
26+
name: gridsuite/gridadmin-app
2727
username: gridsuiteci
2828
password: ${{ secrets.DOCKERHUB_TOKEN }}
2929

@@ -32,4 +32,4 @@ jobs:
3232
uses: gridsuite/broadcast-event@main
3333
with:
3434
token: ${{ secrets.REPO_ACCESS_TOKEN }}
35-
event-type: gridXXX_app_updated
35+
event-type: gridadmin_app_updated

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ FROM bitnami/apache:2.4.55-debian-11-r3@sha256:bbe50190eb3bbf3be6f61318004480b32
22

33
USER root
44
COPY app-httpd.conf /opt/bitnami/apache/conf/bitnami/bitnami.conf
5-
COPY build /opt/bitnami/apache/htdocs/gridXXX
6-
RUN sed -i -e 's;<base href="\./"/>;<base href="<!--#echo var="BASE" -->"/>;' /opt/bitnami/apache/htdocs/gridXXX/index.html
5+
COPY build /opt/bitnami/apache/htdocs/gridadmin
6+
RUN sed -i -e 's;<base href="\./"/>;<base href="<!--#echo var="BASE" -->"/>;' /opt/bitnami/apache/htdocs/gridadmin/index.html
77
USER 1001

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
# GridXXX-App
2-
3-
Template app that bootstraps the creation of GridSuite apps.
4-
This template setup the authentication mechanism and provides a configured empty application.
5-
6-
To customize this repository for an app, search and replace the string XXX with the name of the app. For example, GridXXX -> GridFoo, gridXXX-app -> gridfoo-app.
1+
# GridAdmin-App
2+
Application to manage users in GridSuite.
73

84
## Typescript config
95

app-httpd.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
LoadModule include_module modules/mod_include.so
99
LoadModule info_module modules/mod_info.so
1010

11-
DocumentRoot /opt/bitnami/apache/htdocs/gridXXX/
11+
DocumentRoot /opt/bitnami/apache/htdocs/gridadmin/
1212

13-
<Directory /opt/bitnami/apache/htdocs/gridXXX/>
13+
<Directory /opt/bitnami/apache/htdocs/gridadmin/>
1414
<Files "index.html">
1515
SetOutputFilter INCLUDES
1616
</Files>
@@ -39,7 +39,7 @@
3939
Header set Cache-Control "no-cache"
4040
</Directory>
4141

42-
<Directory /opt/bitnami/apache/htdocs/gridXXX/static/>
42+
<Directory /opt/bitnami/apache/htdocs/gridadmin/static/>
4343
# All files in this folder are public and have in their name
4444
# the hash of their content, so cache them very aggressively
4545
# as per recommended best practices
@@ -54,7 +54,7 @@
5454
RewriteEngine On
5555
RewriteMap remapbase "prg:/bin/sed -u -e 's;[^ ]* ;;' -e 's;[ ?].*;;' -e 's;[^/]*;..;g' -e 's;../..;;' -e 's/.//' -e 's;^$;.;'"
5656

57-
RewriteCond /opt/bitnami/apache/htdocs/gridXXX%{REQUEST_URI} -f [OR]
57+
RewriteCond /opt/bitnami/apache/htdocs/gridadmin%{REQUEST_URI} -f [OR]
5858
RewriteCond %{REQUEST_URI} ^/api/.* [OR]
5959
RewriteCond %{REQUEST_URI} ^/ws/.*
6060
RewriteRule ^ - [S=2]

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
2-
"name": "gridXXX-app",
2+
"name": "gridadmin-app",
33
"version": "0.1.0",
44
"license": "MPL-2.0",
55
"homepage": ".",
66
"private": true,
7+
"bugs": "https://github.com/gridsuite/gridadmin-app/issues",
8+
"repository": {
9+
"type": "TODO",
10+
"url": "https://github.com/gridsuite/gridadmin-app"
11+
},
712
"engines": {
813
"node": ">=18",
914
"npm": "^10.2.0"

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1313
<meta name="google" content="notranslate" />
1414
<link rel="icon" href="favicon.ico" />
15-
<title>GridXXXApp</title>
15+
<title>GridAdminApp</title>
1616
</head>
1717
<body>
1818
<noscript>You need to enable JavaScript to run this app.</noscript>

src/components/app-top-bar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ const AppTopBar: FunctionComponent<AppTopBarProps> = (props) => {
5858
appColor="grey"
5959
appLogo={
6060
theme === LIGHT_THEME ? (
61-
<PowsyblLogo /> //GridXXXLogoLight
61+
<PowsyblLogo /> //GridAdminLogoLight
6262
) : (
63-
<PowsyblLogo /> //GridXXXLogoDark
63+
<PowsyblLogo /> //GridAdminLogoDark
6464
)
6565
}
6666
appVersion={AppPackage.version}

src/components/app.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ it('renders', async () => {
5151
)
5252
);
5353

54-
expect(container.textContent).toContain('GridXXX');
54+
expect(container.textContent).toContain('GridAdmin');
5555
act(() => {
5656
root.unmount();
5757
});

src/utils/config-params.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
export const COMMON_APP_NAME = 'common';
9-
export const APP_NAME = 'XXX';
9+
export const APP_NAME = 'Admin';
1010

1111
export const PARAM_THEME = 'theme';
1212
export const PARAM_LANGUAGE = 'language';

0 commit comments

Comments
 (0)