Skip to content

Commit

Permalink
i18n: Added Turkish Translation Files
Browse files Browse the repository at this point in the history
fix: tr lang fix

fix: war compilers

feature: Oracle Page Deploy

fix: lock file

ci: Added cf pages secrets

fix: cf pages output directory changed

ci: cf pages fix

ci: cf pages fix

Update deploy-cf-pages-app-myaccount.yml

Update deploy-cf-pages-app-myaccount.yml

Update deploy-cf-pages-app-myaccount.yml

ci: Added cf publish for console app

Update and rename deploy-cf-pages-app-myaccount.yml to deploy-cf-pages-apps.yml

Update deploy-cf-pages-apps.yml

Update deploy-cf-pages-apps.yml

dependency: update

Update deploy-cf-pages-apps.yml

translations: added console drafts

tenant: Elveris First

ci: All apps one cf project

ci: fix

ci: Added redirects

delete pnpm lock file
  • Loading branch information
alifiratari committed Sep 21, 2023
1 parent 5b6f991 commit d04ade6
Show file tree
Hide file tree
Showing 69 changed files with 59,873 additions and 232 deletions.
134 changes: 134 additions & 0 deletions .github/workflows/deploy-cf-pages-apps-tenant-elveris.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# This workflow will build PRs submitted to the master branch.

name: Oracle Page Deploy - My Account

on:
push:
branches: [ tenant-elveris ]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
name: 🚧 Build
environment: Production
# needs: [ lint, typecheck, test ]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ lts/* ]
maven-version: [ 3.8.6 ]
java-version: [ 1.8 ]
pnpm-version: [ 7.30.0 ]
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/[email protected]

- name: 🟢 Setup node
id: setup-node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: ☕ Set up JDK 1.8
id: jdk-setup
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
cache: maven

- name: 🦩 Set up Maven
uses: stCarolas/setup-maven@v4
id: mvn-setup
with:
maven-version: ${{ matrix.maven-version }}

- name: 🥡 Setup pnpm
uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
run_install: false

- name: 🎈 Get pnpm store directory
id: get-pnpm-cache-dir
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: 🔆 Cache pnpm modules
uses: actions/cache@v3
id: pnpm-cache
with:
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🧩 Install Dependencies
id: install-dependencies
run: pnpm install --no-frozen-lockfile

- name: 🏗️ Maven Build
id: build-with-maven
run: mvn clean install -U -Dlint.exec.skip=true -Dbootstrap.exec.skip=true

- name: 💾 Cache local Maven repository
id: cache-maven-m2
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: 🎈 Copy all apps
id: copy-all-apps
run: |
mkdir -p apps/all/build
cp -aR apps/myaccount/build/* apps/all/build/
cp -aR apps/console/build/* apps/all/build/
- name: Publish to Cloudflare Pages - All
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: identity-apps
directory: apps/all/build
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main


# - name: Publish to Cloudflare Pages - My Account
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: identity-apps-myaccount
# directory: apps/myaccount/build
# # Optional: Enable this if you want to have GitHub Deployments triggered
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# # Optional: Switch what branch you are publishing to.
# # By default this will be the branch which triggered this workflow
# branch: main

# - name: Publish to Cloudflare Pages - Console
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: identity-apps-console
# directory: apps/console/build
# # Optional: Enable this if you want to have GitHub Deployments triggered
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# # Optional: Switch what branch you are publishing to.
# # By default this will be the branch which triggered this workflow
# branch: main
113 changes: 113 additions & 0 deletions .github/workflows/deploy-cf-pages-apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# This workflow will build PRs submitted to the master branch.

name: Oracle Page Deploy - My Account

on:
push:
branches: [ master ]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
name: 🚧 Build
environment: Production
# needs: [ lint, typecheck, test ]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ lts/* ]
maven-version: [ 3.8.6 ]
java-version: [ 1.8 ]
pnpm-version: [ 7.30.0 ]
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/[email protected]

- name: 🟢 Setup node
id: setup-node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: ☕ Set up JDK 1.8
id: jdk-setup
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
cache: maven

- name: 🦩 Set up Maven
uses: stCarolas/setup-maven@v4
id: mvn-setup
with:
maven-version: ${{ matrix.maven-version }}

- name: 🥡 Setup pnpm
uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm-version }}
run_install: false

- name: 🎈 Get pnpm store directory
id: get-pnpm-cache-dir
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: 🔆 Cache pnpm modules
uses: actions/cache@v3
id: pnpm-cache
with:
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🧩 Install Dependencies
id: install-dependencies
run: pnpm install --no-frozen-lockfile

- name: 🏗️ Maven Build
id: build-with-maven
run: mvn clean install -U -Dlint.exec.skip=true -Dbootstrap.exec.skip=true

- name: 💾 Cache local Maven repository
id: cache-maven-m2
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# - name: Publish to Cloudflare Pages
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: identity-apps-myaccount
# directory: apps/myaccount/build
# # Optional: Enable this if you want to have GitHub Deployments triggered
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# # Optional: Switch what branch you are publishing to.
# # By default this will be the branch which triggered this workflow
# branch: main

# - name: Publish to Cloudflare Pages - Console
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: identity-apps-console
# directory: apps/console/build
# # Optional: Enable this if you want to have GitHub Deployments triggered
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# # Optional: Switch what branch you are publishing to.
# # By default this will be the branch which triggered this workflow
# branch: main
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ tests/dist/
.project
.repository/
apps/console/src/extensions/i18n/tmp/**

pnpm-lock.yaml*
33 changes: 33 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Base image
FROM ubuntu:latest

# Install Node.js LTS
RUN apt-get update && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get install -y nodejs

# Install Maven
RUN apt-get install -y maven

# Install JDK 11
RUN apt-get install -y openjdk-11-jdk

# Set environment variables
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
ENV PATH=$PATH:$JAVA_HOME/bin

# Set working directory
WORKDIR /app

# Copy the Identity Apps repository to the container
COPY . /app

# Build the packages with Maven
RUN mvn clean install

WORKDIR /app/apps/console
# Specify any additional configuration or commands required

# Start the application (if needed)
CMD [ "pnpm", "start" ]
1 change: 1 addition & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ https://elveris.com
23 changes: 23 additions & 0 deletions apps/console/src/extensions/i18n/resources/de-DE/extensions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 LLC. licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { Extensions } from "../../models";

export const extensions: Extensions = {

};
25 changes: 25 additions & 0 deletions apps/console/src/extensions/i18n/resources/de-DE/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { extensions } from "./extensions";
import { ExtensionsBundle } from "../../models";

export const deDE: ExtensionsBundle = {
extensions: extensions,
name: "de-DE"
};
23 changes: 23 additions & 0 deletions apps/console/src/extensions/i18n/resources/es-ES/extensions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 LLC. licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { Extensions } from "../../models";

export const extensions: Extensions = {

};
25 changes: 25 additions & 0 deletions apps/console/src/extensions/i18n/resources/es-ES/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { extensions } from "./extensions";
import { ExtensionsBundle } from "../../models";

export const esES: ExtensionsBundle = {
extensions: extensions,
name: "es-ES"
};
Loading

0 comments on commit d04ade6

Please sign in to comment.