Skip to content

Commit ea9197f

Browse files
committed
Release 0.0.3
1 parent d6eb615 commit ea9197f

File tree

17 files changed

+1351
-7
lines changed

17 files changed

+1351
-7
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919

2020
- name: Install the dependencies
2121
run: npm i
22+
23+
- name: Clone the toolkit
24+
run: |
25+
git clone https://github.com/microsoftgraph/microsoft-graph-toolkit
26+
npm run snippets
2227
2328
- name: Install vsce
2429
run: npm i -g vsce

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ node_modules
44
.vscode-test/
55
*.vsix
66
.DS_Store
7+
8+
microsoft-graph-toolkit

.vscode/launch.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
{
66
"version": "0.2.0",
77
"configurations": [
8+
{
9+
"name": "Run CSS Snippet",
10+
"program": "${workspaceFolder}/scripts/generate-css-snippets.js",
11+
"request": "launch",
12+
"skipFiles": [
13+
"<node_internals>/**"
14+
],
15+
"type": "pwa-node"
16+
},
817
{
918
"name": "Run Extension",
1019
"type": "extensionHost",

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the "vscode-msgraph-essentials" extension will be documented in this file.
44

5+
## [0.0.3]
6+
7+
- CSS snippets added for quickly changing component styles
8+
- HTML snippets added for easy insert of the MGT components in HTML
9+
- Autocompletion added for all the CSS variables which can be used to change the styling of the components
10+
511
## [0.0.2]
612

713
- Update to the `mgt-react-tmp` snippet

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@
1818

1919
The Microsoft Graph Essentials extension helps you developing with the Microsoft Graph Toolkit & API.
2020

21+
## Autocompletion for CSS variabls
22+
23+
The extension gives you autocompletion for all the CSS variables which are used to customize the styling of the MGT web components.
24+
25+
Example:
26+
27+
```CSS
28+
mgt-person {
29+
--person-card-display-name-font-size: 40px;
30+
--person-card-display-name-color: #ffffff;
31+
--person-card-title-font-size: 20px;
32+
}
33+
```
34+
35+
Using is as simple as starting to type `--`, and the extension will show you all the options.
36+
37+
![](./assets/css-variables.png)
38+
2139
## Snippets
2240

2341
### React
@@ -26,6 +44,36 @@ The Microsoft Graph Essentials extension helps you developing with the Microsoft
2644
|---------|---------|
2745
| `mgt-react-tmp` | Create a new MGT React template component. |
2846

47+
### HTML
48+
49+
Snippets to insert the MGT web component in HTML:
50+
51+
| Snippet |
52+
|---------|
53+
| mgt-agenda |
54+
| mgt-people |
55+
| mgt-login |
56+
| mgt-people-picker |
57+
| mgt-person |
58+
| mgt-person-card |
59+
| mgt-tasks |
60+
| mgt-teams-channel-picker |
61+
62+
### CSS
63+
64+
Snippets to quickly modify the component styles:
65+
66+
| Snippet |
67+
|---------|
68+
| mgt-agenda |
69+
| mgt-people |
70+
| mgt-login |
71+
| mgt-people-picker |
72+
| mgt-person |
73+
| mgt-person-card |
74+
| mgt-tasks |
75+
| mgt-teams-channel-picker |
76+
2977
## Changelog
3078

3179
See the [changelog](./CHANGELOG.md) for the latest changes.

README_TMPL.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<p align="center">
2+
<a href="https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-msgraph-autocomplete">
3+
<img alt="Microsoft Graph Essentials" src="./assets/logo-big.png" height="200">
4+
</a>
5+
</p>
6+
7+
<h1 align="center">Microsoft Graph Essentials - Visual Studio Code Extension</h1>
8+
9+
<p align="center">
10+
<a href="https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-msgraph-essentials" title="Check it out on the Visual Studio Marketplace">
11+
<img src="https://vsmarketplacebadge.apphb.com/version/eliostruyf.vscode-msgraph-essentials.svg" alt="Visual Studio Marketplace" style="display: inline-block" />
12+
</a>
13+
14+
<img src="https://vsmarketplacebadge.apphb.com/installs/eliostruyf.vscode-msgraph-essentials.svg" alt="Number of installs" style="display: inline-block;margin-left:10px" />
15+
16+
<img src="https://vsmarketplacebadge.apphb.com/rating/eliostruyf.vscode-msgraph-essentials.svg" alt="Ratings" style="display: inline-block;margin-left:10px" />
17+
</p>
18+
19+
The Microsoft Graph Essentials extension helps you developing with the Microsoft Graph Toolkit & API.
20+
21+
## Autocompletion for CSS variabls
22+
23+
The extension gives you autocompletion for all the CSS variables which are used to customize the styling of the MGT web components.
24+
25+
Example:
26+
27+
```CSS
28+
mgt-person {
29+
--person-card-display-name-font-size: 40px;
30+
--person-card-display-name-color: #ffffff;
31+
--person-card-title-font-size: 20px;
32+
}
33+
```
34+
35+
Using is as simple as starting to type `--`, and the extension will show you all the options.
36+
37+
![](./assets/css-variables.png)
38+
39+
## Snippets
40+
41+
### React
42+
43+
| Snippet | Purpose |
44+
|---------|---------|
45+
| `mgt-react-tmp` | Create a new MGT React template component. |
46+
47+
### HTML
48+
49+
Snippets to insert the MGT web component in HTML:
50+
51+
| Snippet |
52+
|---------|
53+
{HTML_SNIPPETS}
54+
55+
### CSS
56+
57+
Snippets to quickly modify the component styles:
58+
59+
| Snippet |
60+
|---------|
61+
{CSS_SNIPPETS}
62+
63+
## Changelog
64+
65+
See the [changelog](./CHANGELOG.md) for the latest changes.
66+
67+
## Feedback and snippet ideas
68+
69+
Feedback and/or ideas are always welcome. Please submit them via creating an issue in the extension repository: [issue list](https://github.com/estruyf/vscode-msgraph-essentials/issues).

assets/css-variables.png

74.1 KB
Loading

0 commit comments

Comments
 (0)