Skip to content

Commit 4407c8c

Browse files
SaraVieiraCompuIves
authored andcommitted
add unibit πŸŽ‰ (#2141)
* add unibit * ignore overmind * add icon * update gh url * πŸ‘Œ Requested Change: Update Unibit Icon
1 parent febd743 commit 4407c8c

File tree

16 files changed

+1376
-17
lines changed

16 files changed

+1376
-17
lines changed

β€Žpackages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"@babel/preset-env": "^7.4.2",
131131
"@cerebral/http": "^4.0.0",
132132
"@cerebral/mobx-state-tree": "^3.0.0",
133-
"@codesandbox/template-icons": "^0.3.0",
133+
"@codesandbox/template-icons": "^0.5.0",
134134
"@emmetio/codemirror-plugin": "^0.3.5",
135135
"@svgr/core": "^2.4.1",
136136
"@vue/babel-preset-app": "^3.2.0",

β€Žpackages/app/tsconfig.check.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
3-
"exclude": ["codesandbox-browserfs/*", "overmind/*"],
3+
"exclude": ["codesandbox-browserfs/*", "src/app/overmind/*"],
44
"compilerOptions": {
55
"allowJs": false
66
}

β€Žpackages/common/src/templates/icons.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
SapperIcon,
2525
ParcelIcon,
2626
VuePressIcon,
27+
UnibitIcon,
2728
} from '@codesandbox/template-icons';
2829

2930
import {
@@ -53,6 +54,7 @@ import {
5354
vuepress,
5455
mdxDeck,
5556
quasar,
57+
unibit,
5658
} from './';
5759

5860
import { TemplateType } from './';
@@ -118,6 +120,8 @@ export default function getIcon(theme: TemplateType): ReturnedIcon {
118120
return MDXDeckIcon;
119121
case quasar.name:
120122
return QuasarIcon;
123+
case unibit.name:
124+
return UnibitIcon;
121125
default:
122126
return ReactIcon;
123127
}

β€Žpackages/common/src/templates/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import gridsome from './gridsome';
2626
import vuepress from './vuepress';
2727
import mdxDeck from './mdx-deck';
2828
import quasar from './quasar';
29+
import unibit from './unibit';
2930

3031
export {
3132
adonis,
@@ -55,7 +56,8 @@ export {
5556
gridsome,
5657
vuepress,
5758
mdxDeck,
58-
quasar
59+
quasar,
60+
unibit,
5961
};
6062

6163
export type TemplateType =
@@ -82,7 +84,8 @@ export type TemplateType =
8284
| 'gridsome'
8385
| 'vuepress'
8486
| 'mdx-deck'
85-
| 'quasar';
87+
| 'quasar'
88+
| 'unibit';
8689

8790
export default function getDefinition(theme: TemplateType) {
8891
switch (theme) {
@@ -142,6 +145,8 @@ export default function getDefinition(theme: TemplateType) {
142145
return vuepress;
143146
case quasar.name:
144147
return quasar;
148+
case unibit.name:
149+
return unibit;
145150
default:
146151
return react;
147152
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import Template from './template';
2+
import { decorateSelector } from '../theme';
3+
4+
export default new Template(
5+
'unibit',
6+
'Unibit',
7+
'https://www.stackbit.com',
8+
'github/stackbithq/stackbit-theme-universal/tree/master/',
9+
decorateSelector(() => '#3EB0FD'),
10+
{
11+
distDir: 'public',
12+
isServer: true,
13+
popular: true,
14+
mainFile: ['README.md'],
15+
showOnHomePage: true,
16+
main: false,
17+
showCube: false,
18+
}
19+
);

β€Žstandalone-packages/vscode-extensions/out/extensions/index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
3+
<Metadata>
4+
<Identity Language="en-US" Id="nunjucks" Version="0.2.3" Publisher="ronnidc"/>
5+
<DisplayName>Nunjucks</DisplayName>
6+
<Description xml:space="preserve">A Nunjucks syntax definition</Description>
7+
<Tags>nunjucks,Nunjucks,__ext_.nunjucks,__ext_.nunjs,__ext_.nunj,__ext_.nj,__ext_.njk,__ext_.html,__ext_.htm,__ext_template,__ext_.tmpl,__ext_.tpl</Tags>
8+
<Categories>Languages</Categories>
9+
<GalleryFlags>Public</GalleryFlags>
10+
<Badges></Badges>
11+
<Properties>
12+
13+
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/ronnidc/vscode-nunjucks" />
14+
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/ronnidc/vscode-nunjucks" />
15+
16+
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/ronnidc/vscode-nunjucks" />
17+
18+
19+
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/ronnidc/vscode-nunjucks/issues" />
20+
21+
<Property Id="Microsoft.VisualStudio.Services.Branding.Color" Value="#203510" />
22+
<Property Id="Microsoft.VisualStudio.Services.Branding.Theme" Value="dark" />
23+
</Properties>
24+
25+
<Icon>extension/images/nunjucksIcon.png</Icon>
26+
</Metadata>
27+
<Installation>
28+
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
29+
</Installation>
30+
<Dependencies/>
31+
<Assets>
32+
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
33+
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/images/nunjucksIcon.png" Addressable="true" />
34+
</Assets>
35+
</PackageManifest>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Nunjucks for Visual Studio Code
2+
Nunjucks template syntax definition specifically for **Microsoft Visual Studio Code**.
3+
4+
```
5+
>ext install extension nunjucks
6+
```
7+
## vscode-nunjucks support these file extensions
8+
```
9+
.nunjucks, .nunjs, .nj, .njk, .html, .htm, .template, .tmpl, .tpl
10+
```
11+
12+
### Although you are free to use any file extension you wish for your Nunjucks template files, the Nunjucks community has adopted `.njk`
13+
<br />
14+
<br />
15+
16+
## Install Nunjucks from Visual Studio Code *(recomended method)*
17+
To install the [Nunjucks extension](https://marketplace.visualstudio.com/items/ronnidc.nunjucks) directly from Visual Studio Code you need to proceed with theese four simple steps:
18+
19+
1. Go to *View > Command Palette* (Mac OSX: `cmd+shift+P`, Windows: `ctrl+shift+P`)
20+
2. Run the following command in the Command Palette field: `>ext install extension` and hit enter.
21+
3. Then type `nunjucks` and hit enter.
22+
4. After instalation is complete restart the Code app and you are all set up for start writing Nunjucks templates in Visual Studio Code.
23+
24+
![Install the Nunjucks extension from Code Command Palette](https://github.com/ronnidc/vscode-nunjucks/raw/master/images/vscode-command-palette-nunjucks.png)
25+
26+
## Or install the Nunjucks extension for Visual Studio Code manually
27+
To install Nunjucks manually for Visual Studio Code you need to proceed with theese five steps:
28+
29+
1. Download this [vscode-nunjucks](https://github.com/ronnidc/vscode-nunjucks) repo from GitHub
30+
2. Navigate to the `<user home>/.vscode/extensions` directory on your computer.
31+
3. Create a new folder and name it `nunjucks`
32+
4. Copy all content of this repository into the `<user home>/.vscode/extensions/nunjucks` directory.
33+
5. Restart the Code app and you are all set up for start writing Nunjucks templates in Code.
34+
35+
![Nunjucks example in Code](https://github.com/ronnidc/vscode-nunjucks/raw/master/images/vscode-nunjucks.png)
36+
37+
## What's in the folder
38+
* This folder contains all of the files necessary for the vscode-nunjucks extension
39+
* `package.json` - this is the manifest file in which the language support is declared and the location of the grammar file that has been copied into the extension is defined.
40+
* `syntaxes/nunjucks.tmLanguage` - this is the Text mate grammar file that is used for tokenization
41+
* `nunjucks.configuration.json` - this the language configuration, defining the tokens that are used for comments and brackets.
42+
43+
### For more information
44+
* [Visual Studio Code Docs](https://code.visualstudio.com/docs)
45+
* [Nunjucks by Mozilla](https://mozilla.github.io/nunjucks/)
46+
47+
### Credits
48+
This extension is based on the [Sublime-nunjucks](https://github.com/mogga/sublime-nunjucks) language file.
2.75 KB
Loading
Loading

0 commit comments

Comments
Β (0)