Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
teddi-tb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
teddi-tb
Commits
967be997
Commit
967be997
authored
Nov 25, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c13d8494
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
cache.d.ts
dist/cache.d.ts
+1
-0
cache.js
dist/cache.js
+11
-1
package-lock.json
package-lock.json
+1
-1
cache.ts
src/cache.ts
+11
-1
No files found.
dist/cache.d.ts
View file @
967be997
export
declare
const
getLocalCacheTb
:
(
key
:
string
)
=>
boolean
;
export
declare
const
getLocalCacheTb
:
(
key
:
string
)
=>
boolean
;
export
declare
const
setLocalCacheTb
:
(
key
:
string
)
=>
any
;
export
declare
const
setLocalCacheTb
:
(
key
:
string
)
=>
any
;
export
declare
const
removeLocalCacheTb
:
(
key
:
string
)
=>
any
;
dist/cache.js
View file @
967be997
"use strict"
;
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
exports
.
setLocalCacheTb
=
exports
.
getLocalCacheTb
=
void
0
;
exports
.
removeLocalCacheTb
=
exports
.
setLocalCacheTb
=
exports
.
getLocalCacheTb
=
void
0
;
var
teddi_1
=
require
(
"teddi"
);
var
teddi_1
=
require
(
"teddi"
);
exports
.
getLocalCacheTb
=
function
(
key
)
{
exports
.
getLocalCacheTb
=
function
(
key
)
{
if
(
my
)
{
if
(
my
)
{
...
@@ -18,3 +18,13 @@ exports.setLocalCacheTb = function (key) {
...
@@ -18,3 +18,13 @@ exports.setLocalCacheTb = function (key) {
}
}
return
teddi_1
.
setLocalCache
(
key
);
return
teddi_1
.
setLocalCache
(
key
);
};
};
exports
.
removeLocalCacheTb
=
function
(
key
)
{
if
(
my
)
{
return
my
.
setStorageSync
({
key
:
key
,
data
:
"0"
});
;
}
return
teddi_1
.
removeLocalCache
(
key
);
};
package-lock.json
View file @
967be997
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
"integrity"
:
"sha1-Au3BavFiCvn1dKU254E/wlE55Hs="
"integrity"
:
"sha1-Au3BavFiCvn1dKU254E/wlE55Hs="
},
},
"teddi"
:
{
"teddi"
:
{
"version"
:
"git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git#
004b955bbe5aa504770141fcaf28f2211afcd5c7
"
,
"version"
:
"git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git#
55eb8b9fc0364c4e6dce0b5e206e2b2a080d1195
"
,
"from"
:
"git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git"
,
"from"
:
"git+ssh://git@gitlab2.dui88.com:wanghongyuan/teddi.git"
,
"requires"
:
{
"requires"
:
{
"svgaplayerweb"
:
"^2.3.1"
"svgaplayerweb"
:
"^2.3.1"
...
...
src/cache.ts
View file @
967be997
import
{
getLocalCache
,
setLocalCache
}
from
"teddi"
;
import
{
getLocalCache
,
removeLocalCache
,
setLocalCache
}
from
"teddi"
;
export
const
getLocalCacheTb
=
(
key
:
string
)
=>
{
export
const
getLocalCacheTb
=
(
key
:
string
)
=>
{
if
(
my
)
{
if
(
my
)
{
...
@@ -15,4 +15,14 @@ export const setLocalCacheTb = (key:string) => {
...
@@ -15,4 +15,14 @@ export const setLocalCacheTb = (key:string) => {
});;
});;
}
}
return
setLocalCache
(
key
)
return
setLocalCache
(
key
)
}
export
const
removeLocalCacheTb
=
(
key
:
string
)
=>
{
if
(
my
)
{
return
my
.
setStorageSync
({
key
:
key
,
data
:
"0"
});;
}
return
removeLocalCache
(
key
)
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment