Skip to content

Commit 67d9b08

Browse files
committed
1.0.0 initial release
1 parent dd043d0 commit 67d9b08

File tree

9 files changed

+35
-25
lines changed

9 files changed

+35
-25
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# mac
21
.DS_Store

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
6+
"version": "1.0.0",
77
"configurations": [
88
{
99
"name": "Extension",

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

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

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Arth K. Gajjar
3+
Copyright (c) 2023 Shreyans Jain
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# PrestoDom Snippets   ![Downloads](https://img.shields.io/visual-studio-marketplace/d/ias-vscode-ext.prestodom-snippets?style=social)
1+
# Purescript PrestoDom Snippets  
2+
3+
<!-- ![Downloads](https://img.shields.io/visual-studio-marketplace/d/ias-vscode-ext.prestodom-snippets?style=social) -->
24

35
Code Snippets for PrestDom in PureScript Syntax
46

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

79
## Usage
810

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

2325

2426
### Prop Snippets
2527

2628
| Snippet | Purpose |
2729
| -------------------- | -------------------------------------------------- |
28-
| `_sh` | shadow |
29-
| `_mg` | margin |
30-
| `_pd` | padding |
30+
| `_cr` | CornerRadii |
31+
| `_sh` | Shadow |
32+
| `_mg` | Margin |
33+
| `_pd` | Padding |
3134

3235
### Misc Snippets
3336

@@ -42,5 +45,5 @@ Type part of a snippet, press `enter`, and the snippet unfolds.
4245
2. Launch Code
4346
3. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (OSX)
4447
4. Type and Select `Install Extension`
45-
5. Search `PrestoDom Snippets` and click install
48+
5. Search `Purescript PrestoDom Snippets` and click install
4649
6. Done

assets/PrestoDom-Typing.gif

-1.2 MB
Binary file not shown.

assets/PrestoDom.gif

3.86 MB
Loading

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "prestodom-snippets",
3-
"displayName": "PrestoDom Snippets",
2+
"name": "purescript-prestodom-snippets",
3+
"displayName": "Purescript PrestoDom Snippets",
44
"description": "Code Snippets for PrestDom in PureScript Syntax",
5-
"publisher": "ias-vscode-ext",
6-
"version": "0.2.0",
5+
"publisher": "ShreyansJain",
6+
"version": "1.0.0",
77
"icon": "assets/purescript.png",
88
"author": {
9-
"name": "Arth K. Gajjar",
10-
"email": "iarthstar@gmail.com",
11-
"url": "https://github.com/iarthstar"
9+
"name": "Shreyans Jain",
10+
"email": "shreyans1313@gmail.com",
11+
"url": "https://github.com/Shreyans13"
1212
},
1313
"keywords": [
1414
"vscode",
@@ -22,7 +22,7 @@
2222
],
2323
"repository": {
2424
"type": "git",
25-
"url": "https://github.com/iarthstar/vscode-ext-presto-dom.git"
25+
"url": "https://github.com/Shreyans13/vsce-presto-dom.git"
2626
},
2727
"license": "MIT",
2828
"private": false,

snippets/snippets.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"prefix": "_ll",
44
"body": [
55
"linearLayout",
6-
"\t[ height ${1|$ V 0,MATCH_PARENT|}",
7-
"\t, width ${2|$ V 0,MATCH_PARENT|}",
6+
"\t[ height ${1|$ V 0,MATCH_PARENT,WRAP_CONTENT|}",
7+
"\t, width ${2|$ V 0,MATCH_PARENT,WRAP_CONTENT|}",
88
"\t, orientation ${3|VERTICAL,HORIZONTAL|}",
99
"\t, margin $ Margin ${4:0 0 0 0}",
1010
"\t, padding $ Padding ${5:0 0 0 0}",
1111
"\t, background \"#${6:FFFFFF}\"",
12-
"\t, cornerRadius ${7:0.0}",
13-
"\t, gravity ${8|CENTER,CENTER_VERTICAL,CENTER_HORIZONTAL|}",
12+
"\t, cornerRadii $ Corners ${7:0.0} ${8|true,false|} ${9|true,false|} ${10|true,false|} ${11|true,false|}",
13+
"\t, gravity ${8|CENTER,CENTER_VERTICAL,CENTER_HORIZONTAL,LEFT,RIGHT|}",
1414
"\t]",
1515
"\t[ ",
1616
"\t]"
@@ -24,7 +24,8 @@
2424
"\t[ height ${1|$ V 0,MATCH_PARENT|}",
2525
"\t, width ${2|$ V 0,MATCH_PARENT|}",
2626
"\t, background \"#${3:FFFFFF}\"",
27-
"\t, cornerRadius ${4:0.0}",
27+
"\t, cornerRadii $ Corners ${7:0.0} ${8|true,false|} ${9|true,false|} ${10|true,false|} ${11|true,false|}",
28+
"\t, gravity ${8|CENTER,CENTER_VERTICAL,CENTER_HORIZONTAL,LEFT,RIGHT|}",
2829
"\t]",
2930
"\t[ ",
3031
"\t]"
@@ -98,6 +99,13 @@
9899
],
99100
"description": "ImageView PrestDom"
100101
},
102+
"CornerRadii" : {
103+
"prefix": "_cr",
104+
"body": [
105+
"cornerRadii $ Corners ${7:0.0} ${8|true,false|} ${9|true,false|} ${10|true,false|} ${11|true,false|}",
106+
],
107+
"description": "Corner Radii Prop PrestDom"
108+
},
101109
"Shadow": {
102110
"prefix": "_sh",
103111
"body": [

0 commit comments

Comments
 (0)