-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
711 additions
and
297 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
'use strict'; | ||
|
||
exports.copyToClipboard = function (text) { | ||
function copyToClipboard(text) { | ||
return function () { | ||
window.prompt("Copy the following link:", text); | ||
} | ||
} | ||
|
||
export { copyToClipboard } |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
"use strict"; | ||
const LZString = require('lz-string'); | ||
|
||
exports.unsafeCompressToEncodedURIComponent = function (value) { | ||
function unsafeCompressToEncodedURIComponent(value) { | ||
return LZString.compressToEncodedURIComponent(value); | ||
}; | ||
|
||
exports.unsafeDecompressFromEncodedURIComponent = function (value) { | ||
function unsafeDecompressFromEncodedURIComponent(value) { | ||
return LZString.decompressFromEncodedURIComponent(value); | ||
}; | ||
|
||
export { unsafeCompressToEncodedURIComponent, unsafeDecompressFromEncodedURIComponent } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
'use strict'; | ||
|
||
exports.setLocalStorage = function (key) { | ||
function setLocalStorage(key) { | ||
return function (value) { | ||
return function () { | ||
window.localStorage.setItem(key, value); | ||
} | ||
} | ||
} | ||
|
||
exports.getLocalStorage = function (key) { | ||
function getLocalStorage(key) { | ||
return function () { | ||
return window.localStorage.getItem(key); | ||
} | ||
} | ||
|
||
export { setLocalStorage, getLocalStorage } |
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const _parseJSON = JSON.parse; | ||
|
||
export const _undefined = undefined; | ||
|
||
export const _unsafeStringify = JSON.stringify; |
Oops, something went wrong.