Comments (6)
Does anyone foresee any issues with one solution over the other? If not, I'll probably go with the proposed change.
The current lint script gives an error with variable and function names not in camelCase:
ERROR: 19:7 variable-name variable name must be in lowerCamelCase or UPPER_CASE
If new actions with names on the line of "URL From Text" will be added to Shortcuts, the proposed change won't work without modifying the linter.
It has also to be noted that in standard JS, locally upper-cased strings aren't always respected for acronyms. As an example: we have XMLHttpRequest
instead of XMLHTTPRequest
.
from shortcuts-js.
@joshfarrant, since #47 has been merged, now all the action function names can be replaced with the proposed ones. In that pull request I added PascalCased variable name validation in tslint.json
(that was required for the private Variable
class).
from shortcuts-js.
@xAlien95 I spotted that in your PR and was wondering if it would do the trick. I'm happy with that then, I'll go through and make the adjustments now.
from shortcuts-js.
The naming of showInItunesStore
still makes me kind of sad to look at. Would showInITunesStore
be better? And if so should runJavascriptOnWebPage
be runJavaScriptOnWebPage
?
from shortcuts-js.
The naming of showInItunesStore still makes me kind of sad to look at. Would showInITunesStore be better?
showInITunesStore
looks better.
And if so should runJavascriptOnWebPage be runJavaScriptOnWebPage?
The original shown name is "Run JavaScript on Web Page" if I recall correctly, so runJavaScriptOnWebPage
should be the right one.
from shortcuts-js.
Cool, I’ll adjust those too then.
from shortcuts-js.
Related Issues (20)
- iOS 13 Beta does not support Shortcut imports through AirDrop HOT 16
- Color and glyphs are not available HOT 3
- Add Bear actions
- Is it possible to port the "shortcuts" app to Android? Parsing the file format and Implement the action. HOT 1
- Speak Text HOT 3
- Better Contribution flow
- Add Replace Text Action
- Add Change Case Action
- Error in REDME
- Hacktoberfest Opt-in HOT 1
- Shortcut parser needs to support both binary bplist and xml plist
- Creating ShortCut URL in iCloud
- How do I get started? HOT 1
- Add getFile Action
- Looking for new maintainers 💖 HOT 21
- Json shortcut
- Getting Shortcuts to "tap" items on the screen HOT 1
- Chrome warns about usage of navigator.userAgent, navigator.appVersion, and navigator.platform HOT 1
- Shortcut for iOS setting?
- Jump/Go to Bottom of Page Request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shortcuts-js.