Skip to content

Commit

Permalink
Added Embed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJltres committed Jul 24, 2020
1 parent e7891c0 commit c59aec1
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ This has a reason, if you add more snippets, will be a mess searching components
| `ui-dropdown-selection-search` | A selection dropdown can allow a user to search through a large list of choices. |
| `ui-dropdown-selection-clearable` | A clearable selection dropdown can allow a user to cancel to cancel a previous selection |
| `ui-dropdown-selection-loading` | A dropdown can show that it is currently loading data |
| **Embed** | |
| `ui-embed` | Creates a container |
| **Emoji** | |
| `ui-emoji` | You can provide the emoji shortname with or without colons |
| `ui-emoji` | A flag can use the two digit country code, the full name, or a common alias |
Expand Down Expand Up @@ -306,5 +308,7 @@ This has a reason, if you add more snippets, will be a mess searching components
| `ui-dimmer` | A simple dimmer displays no content |
| **Dropdown** | |
| `ui-dropdown` | Initializes dropdown with jQuery |
| **Embed** | |
| `ui-embed` | Creates a container |

**Enjoy!**
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"repository": {
"url": "https://github.com/fomantic/Fomantic-UI-vscode-snippets/"
},
"version": "0.36.2",
"version": "0.37.0",
"scripts": {
"start": "node ."
},
Expand Down
14 changes: 14 additions & 0 deletions snippets/fomantic-css.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,20 @@
"</div>"
]
},
"Fomantic-UI Default Embed": {
"prefix": "ui-embed",
"description": "An embed can display any web content",
"body": [
"<div class=\"ui embed\">$0</div>"
]
},
"Fomantic-UI Simple Embed": {
"prefix": "ui-embed-simple",
"description": "An embed can display any web content with no JavaScript",
"body": [
"<div class=\"ui embed\" data-source=\"${1:youtube}\" data-id=\"${2:O6Xo21L0ybE}\" data-placeholder=\"${3:/images/image-16by9.png}\">$0</div>"
]
},
"Fomantic-UI Default Emoji CSS": {
"prefix": "ui-emoji",
"description": "You can provide the emoji shortname with or without colons",
Expand Down
7 changes: 7 additions & 0 deletions snippets/fomantic-js.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@
"body": [
"$('${1:.ui.dropdown}').dropdown($2);"
]
},
"Fomantic-UI Default eMBED": {
"prefix": "ui-embed",
"description": "Creates a container",
"body": [
"$('${1:.ui.embed}').embed($0);"
]
}
}
16 changes: 16 additions & 0 deletions src/components/embed-css.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Fomantic-UI Default Embed": {
"prefix": "ui-embed",
"description": "An embed can display any web content",
"body": [
"<div class=\"ui embed\">$0</div>"
]
},
"Fomantic-UI Simple Embed": {
"prefix": "ui-embed-simple",
"description": "An embed can display any web content with no JavaScript",
"body": [
"<div class=\"ui embed\" data-source=\"${1:youtube}\" data-id=\"${2:O6Xo21L0ybE}\" data-placeholder=\"${3:/images/image-16by9.png}\">$0</div>"
]
}
}
9 changes: 9 additions & 0 deletions src/components/embed-js.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Fomantic-UI Default eMBED": {
"prefix": "ui-embed",
"description": "Creates a container",
"body": [
"$('${1:.ui.embed}').embed($0);"
]
}
}

0 comments on commit c59aec1

Please sign in to comment.