For the first you have to create live branch if you don't have live branch on your repo
git checkout -b live
Branch is available on github repo but not in your computer
git fetch origin
# create a new branch from existing branch
| // `adjustBrightness2` works better and `adjustBrightness` works too! | |
| function adjustBrightness($hex, $steps) | |
| { | |
| // Steps should be between -255 and 255. Negative = darker, positive = lighter | |
| $steps = max(-255, min(255, $steps)); | |
| // Normalize into a six character long hex string | |
| $hex = str_replace('#', '', $hex); | |
| if (strlen($hex) == 3) { |
| // Example | |
| const button = document.querySelector('#showHiddenMenuTwo') | |
| const box = document.querySelector('#hiddenWidgetTwo'); | |
| const toggle = event => { | |
| event.stopPropagation(); | |
| if (!event.target.closest('#hiddenWidgetTwo')) { | |
| // box.classList.toggle('active'); |
| Handle,Title,Body,Vendor,Type,Tags,Published,Option1 name,Option1 value,Option2 name,Option2 value,Option3 name,Option3 value,Variant sku,Variant grams,Variant inventory tracker,Variant inventory policy,Variant inventory quantity,Variant fullfilment service,Variant price,Variant compare at price,Variant requires shipping,Variant taxable,Variant barcode,Image src,Image alt text,Gift card,Google shopping mpn,Google shopping age group,Google shopping gender,Google shopping google product category,Seo title,Seo description,Google shopping adwords grouping,Google shopping adwords labels,Google shopping condition,Google shopping custom product,Google shopping custom label 0,Google shopping custom label 1,Google shopping custom label 2,Google shopping custom label 3,Google shopping custom label 4,Variant image,Variant weight unit | |
| fantastic-bronze-lamp,Fantastic Bronze Lamp,Typewriter health shabby chic meh street hoodie 3 wolf moon pbr&b literally. Thank You And Goodnight. Shunned immemorial foetid iridescence spect |
| const { sanitizeEntity } = require('strapi-utils'); | |
| module.exports = { | |
| query: ` | |
| categoryBySlug(slug: String!): Category | |
| `, | |
| resolver: { | |
| Query: { | |
| categoryBySlug: { | |
| resolverOf: 'Category.findOne', |
| <div style="text-align:center"> | |
| <a href="https://support.templatecookie.com/" target="_blank"> | |
| <img src="https://i.ibb.co/4fbd4yn/Customer-Support.png" alt="Customer-Support" border="0" /> | |
| </a> | |
| </div> |
GitHub allows you to attach a deploy key to any of your repositories. However, each repo must have its own unique key. If you’re deploying multiple GitHub repos on a single machine, that means you’ll need to set up multiple ssh keys for that machine. The easiest way to achieve this is to leverage ssh’s host config. If you have mygithubuser/repo1 and mygithubuser/repo2 that you want to deploy on a single machine, first create an rsa key pair for each repo:
ssh-keygen -t rsa -f ~/.ssh/repo1_rsa -C "repo1 deploy"
ssh-keygen -t rsa -f ~/.ssh/repo2_rsa -C "repo2 deploy"
Cat the public keys and copy+paste them into each repo’s respective GitHub deploy key:
| // de.json | |
| { | |
| "hello": "Guten tag" | |
| } |
| import Vue from 'vue' | |
| import VueI18n from 'vue-i18n' | |
| Vue.use(VueI18n) | |
| function loadLocaleMessages () { | |
| const locales = require.context('./locales', true, /[A-Za-z0-9-_,\s]+\.json$/i) | |
| const messages = {} | |
| locales.keys().forEach(key => { | |
| const matched = key.match(/([A-Za-z0-9-_]+)\./i) |