Skip to content

Commit 8daa6e3

Browse files
committed
Merge remote-tracking branch 'remotes/origin/feature/forge' into develop
2 parents d63caaa + c49d8d9 commit 8daa6e3

119 files changed

Lines changed: 17162 additions & 18472 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.check-licenses.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
- - :approve
3+
- "@atlaskit/forge-react-types"
4+
- :who:
5+
:why: The Unlicense
6+
:versions: []
7+
:when: 2025-11-11 11:56:14.425456100 Z
8+
- - :approve
9+
- "@atlaskit/navigation-system"
10+
- :who:
11+
:why: The Unlicense
12+
:versions: []
13+
:when: 2025-11-11 11:56:27.116344100 Z
14+
- - :approve
15+
- "@forge/api"
16+
- :who:
17+
:why: Atlassian
18+
:versions: []
19+
:when: 2025-11-11 11:57:50.405959500 Z
20+
- - :approve
21+
- "@forge/auth"
22+
- :who:
23+
:why: Atlassian
24+
:versions: []
25+
:when: 2025-11-11 11:57:50.405959500 Z
26+
- - :approve
27+
- "@forge/bridge"
28+
- :who:
29+
:why: Atlassian
30+
:versions: []
31+
:when: 2025-11-11 11:57:50.405959500 Z
32+
- - :approve
33+
- "@forge/egress"
34+
- :who:
35+
:why: Atlassian
36+
:versions: []
37+
:when: 2025-11-11 11:57:50.405959500 Z
38+
- - :approve
39+
- "@forge/i18n"
40+
- :who:
41+
:why: Atlassian
42+
:versions: []
43+
:when: 2025-11-11 11:57:50.405959500 Z
44+
- - :approve
45+
- "@forge/kvs"
46+
- :who:
47+
:why: Atlassian
48+
:versions: []
49+
:when: 2025-11-11 11:57:50.405959500 Z
50+
- - :approve
51+
- "@forge/manifest"
52+
- :who:
53+
:why: Atlassian
54+
:versions: []
55+
:when: 2025-11-11 11:57:50.405959500 Z
56+
- - :approve
57+
- "@forge/react"
58+
- :who:
59+
:why: Atlassian
60+
:versions: []
61+
:when: 2025-11-11 11:57:50.405959500 Z
62+
- - :approve
63+
- "@forge/resolver"
64+
- :who:
65+
:why: Atlassian
66+
:versions: []
67+
:when: 2025-11-11 11:57:50.405959500 Z
68+
- - :approve
69+
- "@forge/storage"
70+
- :who:
71+
:why: Atlassian
72+
:versions: []
73+
:when: 2025-11-11 11:57:50.405959500 Z

.config/source-license-header.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
*
3+
* (c) Copyright Ascensio System SIA 2026
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/

.dockerignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.env.docker.example

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintrc.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
const path = require("path");
2+
3+
module.exports = {
4+
parser: "@typescript-eslint/parser",
5+
parserOptions: {
6+
ecmaVersion: "latest",
7+
sourceType: "module",
8+
ecmaFeatures: { jsx: true }
9+
},
10+
env: {
11+
browser: true,
12+
es2021: true
13+
},
14+
plugins: ["@typescript-eslint", "react", "import", "prettier", "license-header"],
15+
extends: [
16+
"eslint:recommended",
17+
"plugin:@typescript-eslint/recommended",
18+
"plugin:react/recommended",
19+
"prettier"
20+
],
21+
rules: {
22+
"quotes": ["error", "double", { "avoidEscape": true }],
23+
24+
"import/order": [
25+
"error",
26+
{
27+
groups: ["builtin", "external", "internal", "parent", "sibling", "index"],
28+
pathGroups: [
29+
{
30+
pattern: "react",
31+
group: "external",
32+
position: "before"
33+
}
34+
],
35+
pathGroupsExcludedImportTypes: ["react"],
36+
"newlines-between": "always",
37+
alphabetize: { order: "asc", caseInsensitive: true }
38+
}
39+
],
40+
"prettier/prettier": "error",
41+
"license-header/header": [
42+
"error",
43+
path.resolve(__dirname, ".config/source-license-header.js")
44+
]
45+
},
46+
settings: {
47+
react: {
48+
version: "detect"
49+
}
50+
}
51+
};

.github/workflows/build.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/create-tag.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- '**/LICENSE'
1010
- '**/README.md'
1111

12+
permissions:
13+
contents: write
14+
1215
jobs:
1316
create-tag:
1417
runs-on: ubuntu-latest

.github/workflows/licenses.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: [master, develop]
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
licences:
1215
runs-on: ubuntu-latest
@@ -19,7 +22,21 @@ jobs:
1922
node-version: 22
2023
- name: Install Dependencies
2124
run: npm install
25+
- name: Install Dependencies - Custom UI
26+
run: npm install
27+
working-directory: ./static/onlyoffice-confluence-cloud-custom-ui
28+
- name: Get Repository License
29+
id: license
30+
run: |
31+
license="${{ (github.event.repository.license.spdx_id) || (github.event.repository.licenses[0]) }}"
32+
echo "License detected: $license"
33+
echo "license=$license" >> $GITHUB_OUTPUT
2234
- name: Check Licenses
2335
uses: ONLYOFFICE/check-licenses@v1
2436
with:
25-
project_license: Apache-2.0
37+
project_license: ${{ steps.license.outputs.license }}
38+
- name: Check Licenses - Custom UI
39+
uses: ONLYOFFICE/check-licenses@v1
40+
with:
41+
project_license: ${{ steps.license.outputs.license }}
42+
working_directory: ./static/onlyoffice-confluence-cloud-custom-ui

.github/workflows/lint.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@ name: Lint
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches: [master]
75
pull_request:
6+
types: [opened, reopened]
7+
branches: [master, develop]
8+
paths:
9+
- '**/*.ts'
10+
- '**/*.tsx'
11+
- '**/*.yml'
12+
push:
813
branches: [master, develop]
14+
paths:
15+
- '**/*.ts'
16+
- '**/*.tsx'
17+
- '**/*.yml'
18+
19+
permissions:
20+
contents: read
921

1022
jobs:
1123
lint:
@@ -18,10 +30,10 @@ jobs:
1830
- name: Install NodeJS
1931
uses: actions/setup-node@v4
2032
with:
21-
node-version: 18
33+
node-version: 22
2234

2335
- name: Install Dependencies
2436
run: npm install
2537

2638
- name: Code Linting
27-
run: npm run lint
39+
run: npm run eslint

.github/workflows/release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,36 @@ jobs:
1414
steps:
1515
- name: Checkout Repository
1616
uses: actions/checkout@v4
17+
- name: Install NodeJS
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
- name: Install Forge CLI
22+
run: npm install -g @forge/cli
23+
- name: Disable Forge usage analytics
24+
run: forge settings set usage-analytics false
25+
- name: Install dependencies in Forge Root Project
26+
run: npm install
27+
- name: Install dependencies in Forge Custom UI Project
28+
run: npm install
29+
working-directory: ./static/onlyoffice-confluence-cloud-custom-ui
30+
- name: Build Forge Custom UI Project
31+
run: npm run build
32+
working-directory: ./static/onlyoffice-confluence-cloud-custom-ui
33+
- name: Deploy Forge app
34+
run: forge deploy --environment production --non-interactive
35+
env:
36+
FORGE_EMAIL: ${{ secrets.FORGE_EMAIL }}
37+
FORGE_API_TOKEN: ${{ secrets.FORGE_API_TOKEN }}
38+
FORGE_APP_ID: ${{ secrets.FORGE_APP_ID }}
39+
FORGE_REMOTE_APP_URL: ${{ secrets.FORGE_REMOTE_APP_URL }}
1740
- name: Get Info
1841
run: |
1942
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT
2043
id: info
2144
- name: Generate Changelog
2245
run: |
23-
awk 'BEGIN {found=0} /^## [0-9]/ {if (!found) {found=1; next} else exit} found {print}' CHANGELOG.md > RELEASE.md
46+
awk '/## [0-9]/{p++} p; /## [0-9]/{if (p > 1) exit}' CHANGELOG.md | awk 'NR>2 {print last} {last=$0}' > RELEASE.md
2447
- name: Create Release
2548
uses: ncipollo/release-action@v1
2649
id: create_release

0 commit comments

Comments
 (0)