ThemeKit | macOS | Theme library
kandi X-RAY | ThemeKit Summary
kandi X-RAY | ThemeKit Summary
ThemeKit is a lightweight theming library completely written in Swift that provides theming capabilities to both Swift and Objective-C macOS applications. ThemeKit is brought to you with ️ by Nuno Grilo and the Paw team.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ThemeKit
ThemeKit Key Features
ThemeKit Examples and Code Snippets
Community Discussions
Trending Discussions on ThemeKit
QUESTION
So I've been using ThemeKit to build a Shopify theme and I've been getting a notification in the command-line window that ThemeKit has an upgrade available. It says to use theme update
as the command to run to get this done but when I do I get this error message, Could not update and had to roll back. open C:\Program Files\Theme Kit\.theme.exe.new: Access is denied.
Anyone else have this issue? I'm working on Windows 10 if that helps...
ANSWER
Answered 2021-Mar-23 at 00:45Thanks, @drip, for the solution, which was to open up the command prompt as administrator and then running theme update
. Worked like a charm!
QUESTION
So while using "themekit" in vs code terminal, I get the following message:
"This is the live theme on my-store. If you wish to make changes to it, then you will have to pass the --allow-live flag"
and to resolve it, I add --allow-live flag to the command and it works fine.(as described in the other answer on stack overflow)
BUT, while it did resolve the issue, everytime I try to use theme watch or theme deploy, it repeatedly asks me to use the --allow-live flag.
While researching themekit on google, youtube and other tutorials, I saw that it works fine for other developers even if they don't use --allow-live.
I read the following shopify documentation as well- https://www.shopify.com/partners/blog/checksums
How is "theme watch --allow-live" different from the "theme watch" command, and how do I make sure that everytime I use themekit, it doesn't ask me to add the flag. Is there a way by which it automatically allows live changes without manually adding the flag everytime I try using themekit.
...ANSWER
Answered 2021-Apr-04 at 10:14The --allow-live
is used only when you are working on a live theme.
If you don't want to use the --allow-live
you must create a development theme and work on that, then the flag will not be required.
Please note that this flag was added recently (a few months back) so it's possible that you are reading older documentation where this flag was not present.
The flag cannot be stopped on a live theme, this is a prevention rule so that you don't overwrite the live theme without knowing that you are working on it.
So theme watch
and theme watch --allow-live
do the exactly same thing, but the second one just allows for the modification on the live theme.
QUESTION
I'm following instructions on shopify developers to create a 'How did you hear about us form field' for my website. FYI I am using safari on a Mac. Everything was working fine until I got to the step of 'Add theme settings for configuration.' In the Config. directory of settings_schema-json, the current code (below) already exists:
...ANSWER
Answered 2021-Feb-18 at 18:46QUESTION
I am trying to use the ipapi API (https://ipapi.com/documentation) to get the geolocation data of users and I have an API key which I will need to use to make the API call to get the JSON results.
In nodejs, we can use .env
to store secret keys and access them with process.env.KEY_NAME
. The same goes for servers such as Heroku and AWS, where we can store an API keys as config vars.
But for shopify, I can't seem to find out where to store secret API keys.
I have read some examples:
How to define global variables in Liquid? (this doesn't seem like the right thing to do as I want to store it as a secret and access it from another file).
https://devcenter.heroku.com/articles/config-vars (only for themekit/slate development).
Is it safe to just create another .liquid
file and place all my secret keys there and just call it from another file?
Would appreciate if someone could point me the right direction.
Thank you!
...ANSWER
Answered 2020-Aug-17 at 18:32You cannot hide secret API keys in Shopify. Instead, if you want to use a service that is secret, you can install your own custom App in the store, and use the App Proxy callback to call you App. Your App can then use secrets to make secret key API calls, and then that data is returned to the App, you send it to your front-end as the results. That is secure.
On the other hand, for something trivial like calling a geolocation service, you probably have the option to just call them with a public token assigned to your account, no secret. So you'd just use that, and not worry.
QUESTION
I'm new in Shopify. I try many script today but no success. I haven't found any relevant tutorial or documentation how to create mini cart to add product line items on click variant by AJAX. I want to click product a variant and it will add product min cart details in popup [Note: it's not cart page.].
Here is the example of image
Here is my code:
...ANSWER
Answered 2020-May-16 at 17:22From you description, the only problem you seem to have is repeated product data when product count in cart is greater than one. The reason for this is the data returned by cart.json and jQuery append.
As per Shopify AJAX API docs, cart.json returns the data of whole cart. So on each product add,, you fetch the whole cart again and append it via jQuery to existing content. Simple fix for this is to replace entire HTML instead of using append.
QUESTION
I'm starting to code some in-browser automated tests for our Shopify store, and I noticed that I've inadvertantly caused a massive traffic spike to our store during the time I was developing.
Is there a way to make a browser visit not count on Shopify analytics, like a "nostats" queryparam or something? I may eventually end up with dozens of tests running maybe a dozen times a day, and that'll make a significant difference to our analytics.
Right now I'm testing against a previewed theme deployed with themekit, so I'm not testing against the live theme.
I could create a dev store and copy over all our products/collections/etc, but I'd really rather test as close to the live store as possible. If that's stupid (or if there's a really easy way to make my dev store mirror my live store), let me know.
...ANSWER
Answered 2020-Mar-03 at 09:54There's no way to disable Shopify analytics or stop collecting data in any manner you would like to do this. So, you would definitely need to use a development store to run your tests.
There's a number of apps available for store data syncing/migration. That's an easy option but might be quiet expensive. Depends on your resources though.
You can also create your own solution to sync the entities you need for testing. Not so easy but good if you would want to apply this process to multiple Shopify projects.
QUESTION
I'm totally new with Shopify, im trying to Configure an existing theme and fallow the full process form the guideline here (https://shopify.github.io/themekit/) but when I try to run the command theme download it shows me the error requested theme was not found though I setup Private apps and configure everything so is there anything that I missed out of the box.
...ANSWER
Answered 2020-Mar-03 at 03:25This error is showing when you use the wrong theme ID, check it.
QUESTION
I have never worked with shopify before but I have experience with other CMS's.
I recently got a client with a website already live and with some quick research, I see that I need to create a private app and manage the site with themekit.
What I need help with is how to properly set up a staging/dev environment to view the changes I make before pushing the changes into production.
Thanks!
...ANSWER
Answered 2020-Feb-13 at 04:39Make a theme backup by duplicating your current theme. and make code changes in to this theme ( you can preview your changes without affecting live theme/store) when you and your client happy with the changes you can publish this theme to live.
Have a look how to backup / duplicate theme.
https://help.shopify.com/en/manual/using-themes/managing-themes/duplicating-themes
Hope this will help
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ThemeKit
Read the Make your macOS app themable article (simple tutorial).
Check the ThemeKit Docs.
There are multiple options to include ThemeKit on your project:.
CocoaPods Add to your Podfile: use_frameworks! target '[YOUR APP TARGET]' do pod 'macOSThemeKit', '~> 1.2.0' end When using CocoaPods, the ThemeKit module is named macOSThemeKit: import macOSThemeKit
Carthage github "luckymarmot/ThemeKit" Then import ThemeKit module with: import ThemeKit
Manually Either add ThemeKit.framework on your project, or, manually add source files from the ThemeKit\ folder to your project If importing into a Objective-C project, you will need to include all the Swift related frameworks as well (as reported here) Then import ThemeKit module with: import ThemeKit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page