Skip to content

Commit

Permalink
1.0.0 initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyans13 committed May 13, 2023
1 parent dd043d0 commit 67d9b08
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 25 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# mac
.DS_Store
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"version": "1.0.0",
"configurations": [
{
"name": "Extension",
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

All notable changes to the "prestodom-snippets" extension will be documented in this file.
All notable changes to the "purescript-prestodom-snippets" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Arth K. Gajjar
Copyright (c) 2023 Shreyans Jain

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# PrestoDom Snippets   ![Downloads](https://img.shields.io/visual-studio-marketplace/d/ias-vscode-ext.prestodom-snippets?style=social)
# Purescript PrestoDom Snippets  

<!-- ![Downloads](https://img.shields.io/visual-studio-marketplace/d/ias-vscode-ext.prestodom-snippets?style=social) -->

Code Snippets for PrestDom in PureScript Syntax

![Use Extension](assets/PrestoDom-Typing.gif)
<img src="assets/PrestoDom.gif" width="800" />

## Usage

Expand All @@ -14,20 +16,21 @@ Type part of a snippet, press `enter`, and the snippet unfolds.
| -------------------- | -------------------------------------------------- |
| `_ll` | linearLayout |
| `_rl` | relativeLayout |
| `_llHW` | linearLayout with weight "1" and width $ V 1 |
| `_llVW` | linearLayout with weight "1" and height $ V 1 |
| `_tv` | textView |
| `_et` | editText |
| `_iv` | imageView |
| `_llHW` | linearLayout with weight "1" and width $ V 1 |
| `_llVW` | linearLayout with weight "1" and height $ V 1 |


### Prop Snippets

| Snippet | Purpose |
| -------------------- | -------------------------------------------------- |
| `_sh` | shadow |
| `_mg` | margin |
| `_pd` | padding |
| `_cr` | CornerRadii |
| `_sh` | Shadow |
| `_mg` | Margin |
| `_pd` | Padding |

### Misc Snippets

Expand All @@ -42,5 +45,5 @@ Type part of a snippet, press `enter`, and the snippet unfolds.
2. Launch Code
3. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (OSX)
4. Type and Select `Install Extension`
5. Search `PrestoDom Snippets` and click install
5. Search `Purescript PrestoDom Snippets` and click install
6. Done
Binary file removed assets/PrestoDom-Typing.gif
Binary file not shown.
Binary file added assets/PrestoDom.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "prestodom-snippets",
"displayName": "PrestoDom Snippets",
"name": "purescript-prestodom-snippets",
"displayName": "Purescript PrestoDom Snippets",
"description": "Code Snippets for PrestDom in PureScript Syntax",
"publisher": "ias-vscode-ext",
"version": "0.2.0",
"publisher": "ShreyansJain",
"version": "1.0.0",
"icon": "assets/purescript.png",
"author": {
"name": "Arth K. Gajjar",
"email": "iarthstar@gmail.com",
"url": "https://github.com/iarthstar"
"name": "Shreyans Jain",
"email": "shreyans1313@gmail.com",
"url": "https://github.com/Shreyans13"
},
"keywords": [
"vscode",
Expand All @@ -22,7 +22,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/iarthstar/vscode-ext-presto-dom.git"
"url": "https://github.com/Shreyans13/vsce-presto-dom.git"
},
"license": "MIT",
"private": false,
Expand Down
18 changes: 13 additions & 5 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"prefix": "_ll",
"body": [
"linearLayout",
"\t[ height ${1|$ V 0,MATCH_PARENT|}",
"\t, width ${2|$ V 0,MATCH_PARENT|}",
"\t[ height ${1|$ V 0,MATCH_PARENT,WRAP_CONTENT|}",
"\t, width ${2|$ V 0,MATCH_PARENT,WRAP_CONTENT|}",
"\t, orientation ${3|VERTICAL,HORIZONTAL|}",
"\t, margin $ Margin ${4:0 0 0 0}",
"\t, padding $ Padding ${5:0 0 0 0}",
"\t, background \"#${6:FFFFFF}\"",
"\t, cornerRadius ${7:0.0}",
"\t, gravity ${8|CENTER,CENTER_VERTICAL,CENTER_HORIZONTAL|}",
"\t, cornerRadii $ Corners ${7:0.0} ${8|true,false|} ${9|true,false|} ${10|true,false|} ${11|true,false|}",
"\t, gravity ${8|CENTER,CENTER_VERTICAL,CENTER_HORIZONTAL,LEFT,RIGHT|}",
"\t]",
"\t[ ",
"\t]"
Expand All @@ -24,7 +24,8 @@
"\t[ height ${1|$ V 0,MATCH_PARENT|}",
"\t, width ${2|$ V 0,MATCH_PARENT|}",
"\t, background \"#${3:FFFFFF}\"",
"\t, cornerRadius ${4:0.0}",
"\t, cornerRadii $ Corners ${7:0.0} ${8|true,false|} ${9|true,false|} ${10|true,false|} ${11|true,false|}",
"\t, gravity ${8|CENTER,CENTER_VERTICAL,CENTER_HORIZONTAL,LEFT,RIGHT|}",
"\t]",
"\t[ ",
"\t]"
Expand Down Expand Up @@ -98,6 +99,13 @@
],
"description": "ImageView PrestDom"
},
"CornerRadii" : {
"prefix": "_cr",
"body": [
"cornerRadii $ Corners ${7:0.0} ${8|true,false|} ${9|true,false|} ${10|true,false|} ${11|true,false|}",
],
"description": "Corner Radii Prop PrestDom"
},
"Shadow": {
"prefix": "_sh",
"body": [
Expand Down

0 comments on commit 67d9b08

Please sign in to comment.