Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995789
manifest.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
812 B
Referenced Files
None
Subscribers
None
manifest.ts
View Options
import
*
as
assert
from
"assert"
;
export
interface
ManifestData
{
name
:
string
;
logo
:
string
;
version
:
string
;
default_language
:
string
;
base_url
:
string
;
admin_email
:
string
;
colors
:
{
primary
:
string
};
}
export
default
class
Manifest
implements
ManifestData
{
name
:
string
;
logo
:
string
;
version
:
string
;
default_language
:
string
;
base_url
:
string
;
admin_email
:
string
;
colors
:
{
primary
:
string
};
constructor
(
public
data
:
ManifestData
)
{
Object
.
assign
(
this
,
data
);
}
validate
()
{
assert
.
ok
(
this
.
data
,
"Please provide the app manifest"
);
[
"name"
,
"logo"
,
"version"
,
"default_language"
,
"base_url"
,
"admin_email"
,
].
forEach
((
key
:
keyof
ManifestData
)
=>
{
assert
.
ok
(
this
.
data
[
key
],
`Please specify '
${
key
}
' field in the app manifest`
);
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 18:33 (21 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
555164
Default Alt Text
manifest.ts (812 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment