-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Angular: patched latest workspace updates
Since the workspace was successfully deployed for Holloway's client and successfully internalized, we can patch the latest workspace updates back here. Hence, let's do this. This pathc patches latest workspace udpates into Angular/ directory. Co-authored-by: Shuralyov, Jean <[email protected]> Co-authored-by: Galyna, Cory <[email protected]> Co-authored-by: (Holloway) Chew, Kean Ho <[email protected]> Signed-off-by: (Holloway) Chew, Kean Ho <[email protected]>
- Loading branch information
1 parent
0b40dd2
commit 3f2e306
Showing
25 changed files
with
416 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
|
@@ -20,21 +20,21 @@ if [ "$PROJECT_PATH_ROOT" = "" ]; then | |
return 1 | ||
fi | ||
|
||
. "${LIBS_AUTOMATACI}/services/io/fs.sh" | ||
. "${LIBS_AUTOMATACI}/services/i18n/translations.sh" | ||
|
||
|
||
|
||
|
||
# execute | ||
__current_path="$PWD" | ||
cd "${PROJECT_PATH_ROOT}/${PROJECT_ANGULAR}" | ||
|
||
FS_Remove_Silently "dist" | ||
FS_Remove_Silently "node_modules" | ||
FS_Remove_Silently ".angular" | ||
|
||
cd "$__current_path" | ||
unset __current_path | ||
I18N_Build "$PROJECT_ANGULAR" | ||
__current_path="$PWD" && cd "${PROJECT_PATH_ROOT}/${PROJECT_ANGULAR}" | ||
./clean.sh.ps1 | ||
___process=$? | ||
cd "$__current_path" && unset __current_path | ||
if [ $___process -ne 0 ]; then | ||
I18N_Build_Failed | ||
return 1 | ||
fi | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright 2024 (Holloway) Chew, Kean Ho <[email protected]> | ||
# Copyright 2023 (Holloway) Chew, Kean Ho <[email protected]> | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy | ||
|
@@ -19,21 +19,23 @@ if (-not (Test-Path -Path $env:PROJECT_PATH_ROOT)) { | |
return 1 | ||
} | ||
|
||
. "${env:LIBS_AUTOMATACI}\services\io\fs.ps1" | ||
. "${env:LIBS_AUTOMATACI}\services\io\os.ps1" | ||
. "${env:LIBS_AUTOMATACI}\services\i18n\translations.ps1" | ||
|
||
|
||
|
||
|
||
# execute | ||
$null = I18N-Build "${env:PROJECT_ANGULAR}" | ||
$__current_path = Get-Location | ||
$null = Set-Location "${env:PROJECT_PATH_ROOT}\${env:PROJECT_ANGULAR}" | ||
|
||
$null = FS-Remove-Silently "dist" | ||
$null = FS-Remove-Silently "node_modules" | ||
$null = FS-Remove-Silently ".angular" | ||
|
||
$null = Set-Location "${__current_path}" | ||
$___process = OS-Exec ".\clean.sh.ps1" | ||
$null = Set-Location $__current_path | ||
$null = Remove-Variable __current_path | ||
if ($___process -ne 0) { | ||
$null = I18N-Build-Failed | ||
return 1 | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
echo \" <<'RUN_AS_BATCH' >/dev/null ">NUL "\" \`" <#" | ||
@ECHO OFF | ||
REM LICENSE CLAUSES HERE | ||
REM ---------------------------------------------------------------------------- | ||
REM ############################################################################ | ||
REM # Windows BATCH Codes # | ||
REM ############################################################################ | ||
echo "[ ERROR ] --> powershell.exe !!!" | ||
exit /b 1 | ||
REM ############################################################################ | ||
REM # Windows BATCH Codes # | ||
REM ############################################################################ | ||
RUN_AS_BATCH | ||
#> | Out-Null | ||
|
||
|
||
|
||
|
||
echo \" <<'RUN_AS_POWERSHELL' >/dev/null # " | Out-Null | ||
################################################################################ | ||
# Windows POWERSHELL Codes # | ||
################################################################################ | ||
${env:WORKSPACE_ROOT} = Get-Location | ||
$___process = . "${env:WORKSPACE_ROOT}\services\app\shell\clean.ps1" | ||
################################################################################ | ||
# Windows POWERSHELL Codes # | ||
################################################################################ | ||
exit $___process | ||
<# | ||
RUN_AS_POWERSHELL | ||
################################################################################ | ||
# Unix Main Codes # | ||
################################################################################ | ||
WORKSPACE_ROOT="$PWD" | ||
. "${WORKSPACE_ROOT}/services/app/shell/clean.sh" | ||
################################################################################ | ||
# Unix Main Codes # | ||
################################################################################ | ||
exit $? | ||
#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +0,0 @@ | ||
section.selector .panel { | ||
margin: 2rem 0; | ||
} | ||
|
||
section.selector .panel .catalog { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
gap: 2rem; | ||
|
||
margin: 4rem 0; | ||
} | ||
|
||
section.selector .panel .catalog > .social { | ||
min-width: 80vw; | ||
--social-height: 8rem; | ||
} | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ export const METADATA_SITE: Metadata_Site = { | |
// | ||
// Leaving this field empty can cause catastrophic failure. | ||
Name: { | ||
"en": "Project Example", | ||
"en": "Example Website", | ||
}, | ||
|
||
|
||
|
@@ -74,7 +74,7 @@ export const METADATA_SITE: Metadata_Site = { | |
// | ||
// Leaving this field empty can cause catastrophic failure. | ||
Description: { | ||
"en": "An example web app.", | ||
"en": "An example website.", | ||
}, | ||
|
||
|
||
|
@@ -160,7 +160,7 @@ export const METADATA_SITE: Metadata_Site = { | |
Owners: [{ | ||
UUID: '', | ||
Name_Family: { | ||
"en": "Holloway", | ||
"en": "Chew", | ||
}, | ||
Name_Given: { | ||
"en": "Kean Ho", | ||
|
@@ -178,6 +178,13 @@ export const METADATA_SITE: Metadata_Site = { | |
"en": "Learn, Internalize, Grow, and Expand.", | ||
}, | ||
Contacts: { | ||
email_01: { | ||
"en": { | ||
ID: "[email protected]", | ||
Type: "email", | ||
URL: "[email protected]", | ||
}, | ||
}, | ||
bluesky_01: { | ||
"en": { | ||
ID: "hollowaykeanho.com", | ||
|
@@ -199,6 +206,34 @@ export const METADATA_SITE: Metadata_Site = { | |
URL: "https://mastodon.online/@hollowaykeanho", | ||
}, | ||
}, | ||
orcid_01: { | ||
"en": { | ||
ID: "0000-0003-4202-4863", | ||
Type: "orcid", | ||
URL: "https://orcid.org/0000-0003-4202-4863", | ||
}, | ||
}, | ||
website_01: { | ||
"en": { | ||
ID: "(Holloway) Chew, Kean Ho", | ||
Type: "website", | ||
URL: "https://www.hollowaykeanho.com", | ||
}, | ||
}, | ||
youtube_01: { | ||
"en": { | ||
ID: "@chewkeanho", | ||
Type: "youtube", | ||
URL: "https://www.youtube.com/@chewkeanho", | ||
}, | ||
}, | ||
zenodo_01: { | ||
"en": { | ||
ID: "chewkeanho", | ||
Type: "zenodo", | ||
URL: "https://zenodo.org/communities/chewkeanho/", | ||
}, | ||
}, | ||
}, | ||
Roles: [ | ||
"Creator", | ||
|
@@ -874,6 +909,12 @@ export class Service_Page { | |
|
||
|
||
public Init(metadata: Metadata_Page): number { | ||
// valdiate base url (redirect to proper base URL) | ||
if (!this.service_url.Validate_Current_URL(metadata.URL)) { | ||
return 1; | ||
} | ||
|
||
|
||
// validate input | ||
if (metadata.Lang == '') { | ||
metadata.Lang = 'en'; | ||
|
Oops, something went wrong.