Skip to content

Commit

Permalink
Release 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Mar 31, 2021
1 parent d6eb615 commit ea9197f
Show file tree
Hide file tree
Showing 17 changed files with 1,351 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:

- name: Install the dependencies
run: npm i

- name: Clone the toolkit
run: |
git clone https://github.com/microsoftgraph/microsoft-graph-toolkit
npm run snippets
- name: Install vsce
run: npm i -g vsce
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_modules
.vscode-test/
*.vsix
.DS_Store

microsoft-graph-toolkit
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run CSS Snippet",
"program": "${workspaceFolder}/scripts/generate-css-snippets.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
},
{
"name": "Run Extension",
"type": "extensionHost",
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

## [0.0.3]

- CSS snippets added for quickly changing component styles
- HTML snippets added for easy insert of the MGT components in HTML
- Autocompletion added for all the CSS variables which can be used to change the styling of the components

## [0.0.2]

- Update to the `mgt-react-tmp` snippet
Expand Down
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@

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

## Autocompletion for CSS variabls

The extension gives you autocompletion for all the CSS variables which are used to customize the styling of the MGT web components.

Example:

```CSS
mgt-person {
--person-card-display-name-font-size: 40px;
--person-card-display-name-color: #ffffff;
--person-card-title-font-size: 20px;
}
```

Using is as simple as starting to type `--`, and the extension will show you all the options.

![](./assets/css-variables.png)

## Snippets

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

### HTML

Snippets to insert the MGT web component in HTML:

| Snippet |
|---------|
| mgt-agenda |
| mgt-people |
| mgt-login |
| mgt-people-picker |
| mgt-person |
| mgt-person-card |
| mgt-tasks |
| mgt-teams-channel-picker |

### CSS

Snippets to quickly modify the component styles:

| Snippet |
|---------|
| mgt-agenda |
| mgt-people |
| mgt-login |
| mgt-people-picker |
| mgt-person |
| mgt-person-card |
| mgt-tasks |
| mgt-teams-channel-picker |

## Changelog

See the [changelog](./CHANGELOG.md) for the latest changes.
Expand Down
69 changes: 69 additions & 0 deletions README_TMPL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<p align="center">
<a href="https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-msgraph-autocomplete">
<img alt="Microsoft Graph Essentials" src="./assets/logo-big.png" height="200">
</a>
</p>

<h1 align="center">Microsoft Graph Essentials - Visual Studio Code Extension</h1>

<p align="center">
<a href="https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-msgraph-essentials" title="Check it out on the Visual Studio Marketplace">
<img src="https://vsmarketplacebadge.apphb.com/version/eliostruyf.vscode-msgraph-essentials.svg" alt="Visual Studio Marketplace" style="display: inline-block" />
</a>

<img src="https://vsmarketplacebadge.apphb.com/installs/eliostruyf.vscode-msgraph-essentials.svg" alt="Number of installs" style="display: inline-block;margin-left:10px" />

<img src="https://vsmarketplacebadge.apphb.com/rating/eliostruyf.vscode-msgraph-essentials.svg" alt="Ratings" style="display: inline-block;margin-left:10px" />
</p>

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

## Autocompletion for CSS variabls

The extension gives you autocompletion for all the CSS variables which are used to customize the styling of the MGT web components.

Example:

```CSS
mgt-person {
--person-card-display-name-font-size: 40px;
--person-card-display-name-color: #ffffff;
--person-card-title-font-size: 20px;
}
```

Using is as simple as starting to type `--`, and the extension will show you all the options.

![](./assets/css-variables.png)

## Snippets

### React

| Snippet | Purpose |
|---------|---------|
| `mgt-react-tmp` | Create a new MGT React template component. |

### HTML

Snippets to insert the MGT web component in HTML:

| Snippet |
|---------|
{HTML_SNIPPETS}

### CSS

Snippets to quickly modify the component styles:

| Snippet |
|---------|
{CSS_SNIPPETS}

## Changelog

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

## Feedback and snippet ideas

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).
Binary file added assets/css-variables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ea9197f

Please sign in to comment.