- Private browser caches
- store content in user's browser
- no requiring an additional trip to the server
- improves offline browsing
- Shared proxy caches
- store content on the proxy server itself
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const envPrefix = window.location.host.split('.')[0].match(/[^.\s]+-/) || ''; | |
// https://charlie.alpha-Bravo.com/ -> '' | |
// https://dev-charlie.alpha-Bravo.com/ -> 'dev-' | |
export default envPrefix; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const store = new Vuex.Store({ | |
state: { | |
count: 0 | |
}, | |
mutations: { | |
set(state, payload) { | |
state[payload.key] = payload.value; | |
}, | |
setVer2(state, payload) { | |
for (const [key, value] of Object.entries(payload)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push | |
FOR /F "tokens=*" %%g IN ('git branch --show-current') do ( | |
SET CurrentBranch=%%g | |
) | |
git checkout master | |
git pull | |
git merge %CurrentBranch% | |
git push | |
git checkout %CurrentBranch% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const iframe = document.querySelector('iframe[id="tphoto"]').contentWindow; | |
const expands = iframe.document.querySelectorAll('.js-album-op-tip'); | |
expands.forEach((node) => { | |
node.click(); | |
}); | |
const elements = iframe.document.querySelectorAll('.js-album-delete'); | |
let index = 0; | |
const total = elements.length; |