Skip to content

Commit

Permalink
feat: setup workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nauxscript committed Dec 10, 2022
1 parent e37fe46 commit e0e5dd3
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 53 deletions.
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ cd dist
echo "setup files ..."
cp ${parentDir}/src/info.plist ./
cp ${parentDir}/src/icon.png ./
cp ${parentDir}/README.md ./
cp ${parentDir}/LICENSE ./

rm ./index.mjs
Expand Down
13 changes: 7 additions & 6 deletions src/READMD.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Your Workflow Name

What are the functions of your Workflow.
# Alfred Open Port

## Usage
Press enter (↵): open the port in `localhost` prefix.
Press ctrl + enter (⌃ ↵):open the port in intranet ip prefix.
Press cmd + enter (⌘ ↵):open the port in `127.0.0.1` prefix.
回车键(↵):直接在 `localhost` 打开端口。
ctrl 键 + 回车键(⌃ ↵):在当前内网 ip 打开端口。
cmd 键 + 回车键(⌘ ↵):在 `127.0.0.1` 打开端口

How to use your workflow.

## The other things...
Binary file modified src/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
186 changes: 140 additions & 46 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>nauxscript.workflow.ts-template</string>
<string>nauxscript.workflow.alfred-open-port</string>
<key>connections</key>
<dict>
<key>45A75F3D-D49D-40C0-880D-37DAEA5D395E</key>
<key>0EC46467-B2D7-4B7D-975D-E6086FD950C0</key>
<array>
<dict>
<key>destinationuid</key>
<string>1A37DB33-A445-4DAA-87A2-3EFA8FF35275</string>
<string>0EA6FA32-0F9C-4D45-8665-0A7230D11163</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand All @@ -19,11 +19,47 @@
<false/>
</dict>
</array>
<key>D5253346-B7B8-4FBB-9EA1-031E4CF69F22</key>
<key>1F6017E0-434C-44A8-B871-4269E258FCAE</key>
<array>
<dict>
<key>destinationuid</key>
<string>45A75F3D-D49D-40C0-880D-37DAEA5D395E</string>
<string>0EC46467-B2D7-4B7D-975D-E6086FD950C0</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>4D59CF3D-7FD5-417D-B25C-C5FEC1306A00</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>3CAD799C-0423-4214-B0BC-2BFE6B9B7E98</key>
<array>
<dict>
<key>destinationuid</key>
<string>0EA6FA32-0F9C-4D45-8665-0A7230D11163</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>4D59CF3D-7FD5-417D-B25C-C5FEC1306A00</key>
<array>
<dict>
<key>destinationuid</key>
<string>3CAD799C-0423-4214-B0BC-2BFE6B9B7E98</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand All @@ -34,15 +70,59 @@
</array>
</dict>
<key>createdby</key>
<string>nauxscript</string>
<string>Nauxscript</string>
<key>description</key>
<string>a template for building a alfred workflow in TypeScript.</string>
<string>a Workflow to open local listened port easily</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>alfred-workflow-ts-template</string>
<string>Open Local Port</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>spaces</key>
<string></string>
<key>url</key>
<string>http://{query}</string>
<key>utf8</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>0EC46467-B2D7-4B7D-975D-E6086FD950C0</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>
{{update_script}}
</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>0EA6FA32-0F9C-4D45-8665-0A7230D11163</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -51,19 +131,19 @@
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
<true/>
<false/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>0</integer>
<integer>1</integer>
<key>escaping</key>
<integer>102</integer>
<integer>63</integer>
<key>keyword</key>
<string>ts-template</string>
<string>lh</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<false/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
Expand All @@ -77,9 +157,9 @@
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string></string>
<string>输入端口号...</string>
<key>title</key>
<string>input someting...</string>
<string></string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
Expand All @@ -88,17 +168,17 @@
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>D5253346-B7B8-4FBB-9EA1-031E4CF69F22</string>
<string>1F6017E0-434C-44A8-B871-4269E258FCAE</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>autopaste</key>
<true/>
<false/>
<key>clipboardtext</key>
<string>{query}</string>
<string>http://{query}</string>
<key>ignoredynamicplaceholders</key>
<false/>
<key>transient</key>
Expand All @@ -107,63 +187,77 @@
<key>type</key>
<string>alfred.workflow.output.clipboard</string>
<key>uid</key>
<string>45A75F3D-D49D-40C0-880D-37DAEA5D395E</string>
<string>4D59CF3D-7FD5-417D-B25C-C5FEC1306A00</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<key>lastpathcomponent</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>
{{update_script}}
</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
<key>onlyshowifquerypopulated</key>
<true/>
<key>removeextension</key>
<false/>
<key>text</key>
<string>Already copied!</string>
<key>title</key>
<string>http://{query}</string>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>1A37DB33-A445-4DAA-87A2-3EFA8FF35275</string>
<string>3CAD799C-0423-4214-B0BC-2BFE6B9B7E98</string>
<key>version</key>
<integer>2</integer>
<integer>1</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<string><![CDATA[
{{readme}}
]]></string>
<key>uidata</key>
<dict>
<key>1A37DB33-A445-4DAA-87A2-3EFA8FF35275</key>
<key>0EA6FA32-0F9C-4D45-8665-0A7230D11163</key>
<dict>
<key>xpos</key>
<integer>1130</integer>
<key>ypos</key>
<integer>285</integer>
</dict>
<key>0EC46467-B2D7-4B7D-975D-E6086FD950C0</key>
<dict>
<key>xpos</key>
<integer>685</integer>
<key>ypos</key>
<integer>130</integer>
</dict>
<key>1F6017E0-434C-44A8-B871-4269E258FCAE</key>
<dict>
<key>xpos</key>
<integer>630</integer>
<integer>410</integer>
<key>ypos</key>
<integer>210</integer>
<integer>305</integer>
</dict>
<key>45A75F3D-D49D-40C0-880D-37DAEA5D395E</key>
<key>3CAD799C-0423-4214-B0BC-2BFE6B9B7E98</key>
<dict>
<key>xpos</key>
<integer>395</integer>
<integer>885</integer>
<key>ypos</key>
<integer>175</integer>
<integer>475</integer>
</dict>
<key>D5253346-B7B8-4FBB-9EA1-031E4CF69F22</key>
<key>4D59CF3D-7FD5-417D-B25C-C5FEC1306A00</key>
<dict>
<key>xpos</key>
<integer>155</integer>
<integer>650</integer>
<key>ypos</key>
<integer>110</integer>
<integer>475</integer>
</dict>
</dict>
<key>version</key>
<string>{{version}}</string>
<key>webaddress</key>
<string>https://github.com/Nauxscript/alfred-workflow-ts-template</string>
<string>https://github.com/Nauxscript/alfred-open-port</string>
</dict>
</plist>

0 comments on commit e0e5dd3

Please sign in to comment.