Skip to content

Commit b75e165

Browse files
committed
Merge branch 'dev' into feature/css-variables
2 parents b3130b9 + 9e738ba commit b75e165

File tree

172 files changed

+32409
-36285
lines changed

Some content is hidden

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

172 files changed

+32409
-36285
lines changed
Lines changed: 43 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,53 @@
11
name: pr-first-response
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened]
66

7-
jobs:
7+
jobs:
88
send-response:
99
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
1013
steps:
11-
- name: Fetch random comment 🗣️
12-
uses: JamesIves/[email protected]
13-
with:
14-
ENDPOINT: https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/comments/PostComment
15-
CONFIGURATION: '{ "method": "POST", "headers": {"Authorization": "Bearer ${{ secrets.OUR_BOT_API_TOKEN }}", "Content-Type": "application/json" }, "body": { "repo": "${{ github.repository }}", "number": "${{ github.event.number }}", "actor": "${{ github.actor }}", "commentType": "opened-pr-first-comment"} }'
16-
- name: Add PR comment
17-
if: "${{ env.fetch-api-data != '' }}"
18-
uses: actions/github-script@v5
14+
- name: Install dependencies
15+
run: |
16+
npm install node-fetch@2
17+
- name: Fetch random comment 🗣️ and add it to the PR
18+
uses: actions/github-script@v6
1919
with:
2020
script: |
21-
github.rest.issues.createComment({
22-
issue_number: context.issue.number,
23-
owner: context.repo.owner,
24-
repo: context.repo.repo,
25-
body: `${{ env.fetch-api-data }}`
26-
})
21+
const fetch = require('node-fetch')
22+
23+
const response = await fetch('https://collaboratorsv2.euwest01.umbraco.io/umbraco/api/comments/PostComment', {
24+
method: 'post',
25+
body: JSON.stringify({
26+
repo: '${{ github.repository }}',
27+
number: '${{ github.event.number }}',
28+
actor: '${{ github.actor }}',
29+
commentType: 'opened-pr-first-comment'
30+
}),
31+
headers: {
32+
'Authorization': 'Bearer ${{ secrets.OUR_BOT_API_TOKEN }}',
33+
'Content-Type': 'application/json'
34+
}
35+
});
36+
37+
try {
38+
const data = await response.text();
39+
40+
if(response.status === 200 && data !== '') {
41+
github.rest.issues.createComment({
42+
issue_number: context.issue.number,
43+
owner: context.repo.owner,
44+
repo: context.repo.repo,
45+
body: data
46+
});
47+
} else {
48+
console.log("Status code did not indicate success:", response.status);
49+
console.log("Returned data:", data);
50+
}
51+
} catch(error) {
52+
console.log(error);
53+
}

.storybook/preview-head.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414
/* reset defaults: */
1515
margin: 24px;
1616
position: relative;
17+
}
18+
19+
body.sb-main-padded {
1720
padding: 40px !important;
1821
}
22+
1923
body[baseline-grid]::after {
2024
content: '';
2125
position: absolute;

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ If you want to develop a component or contribute to the repository go to ["Get s
3737
| [`<uui-card-user>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-card-user) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-card-user?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-card-user) |
3838
| [`<uui-caret>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-caret) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-caret?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-caret) |
3939
| [`<uui-checkbox>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-checkbox) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-checkbox?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-checkbox) |
40+
| [`<uui-combobox>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-combobox) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-combobox?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-combobox) |
41+
| [`<uui-combobox-list>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-combobox-list) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-combobox-list?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-combobox-list) |
4042
| [`<uui-dialog>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-dialog) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-dialog?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-dialog) |
4143
| [`<uui-dialog-layout>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-dialog-layout) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-dialog-layout?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-dialog-layout) |
4244
| [`<uui-file-dropzone>`](https://github.com/umbraco/Umbraco.UI/tree/dev/packages/uui-file-dropzone) | [![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-file-dropzone?logoColor=%231B264F)](https://www.npmjs.com/package/@umbraco-ui/uui-file-dropzone) |

docs/CONTRIBUTING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Please review this document to help to streamline the process and save everyone'
44

55
This repo uses nodejs, so you should install `nodejs` as the package manager. See [installation guide](https://nodejs.org/en/).
66

7-
# Guidelines for contributions we welcome
7+
# Guidelines for contributions that we welcome
88

99
Not all changes are wanted, so on occasion we might close a PR without merging it. We will give you feedback why we can't accept your changes and we'll be nice about it, thanking you for spending your valuable time.
1010

@@ -47,6 +47,13 @@ The UI Library components are [web components](https://developer.mozilla.org/en-
4747

4848
Using Typescript is mandatory when contributing to this repository, although it is not necessary to use it when consuming the components.
4949

50+
### How to get started
51+
52+
1. Make sure you have the recommended version of node.js and npm installed
53+
1. Currently we use node.js v16 and npm v8
54+
2. Run `npm install`
55+
3. Run `npm run storybook` to start the storybook server, which we also use for development
56+
5057
### New component
5158

5259
You can create a new component and that way contribute to the UI library. But before you do that, go to the [`./src/components`](https://github.com/umbraco/Umbraco.UI/tree/dev/src/components) and check if it's not already there. Components from that folder are very much WIP will be gradually moved to packages. You may also look for an inspiration in this [components list](COMPONENTS.md), where you can check what component is in what stage.

images/login.jpeg

30 KB
Loading

images/umbraco_logo_white.svg

Lines changed: 1 addition & 0 deletions
Loading

images/umbraco_logomark_white.svg

Lines changed: 1 addition & 0 deletions
Loading

lerna.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@
1010
}
1111
},
1212
"ignoreChanges": [
13+
".github/**/*",
1314
"**/tsconfig.json",
1415
"**/*.story.ts",
1516
"**/*.test.ts",
1617
"**/*.md",
1718
"lerna.json",
1819
".storybook/**/*",
20+
"stories/**/*",
1921
"storyhelpers/**/*",
2022
"templates/**/*",
2123
"docs/**/*",
2224
"package.json",
23-
"package-lock.json"
25+
"package-lock.json",
26+
"images/**/*",
27+
"scripts/**/*",
28+
"src/**/*",
29+
"templates/**/*"
2430
]
2531
}

0 commit comments

Comments
 (0)