Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996382
index.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
973 B
Referenced Files
None
Subscribers
None
index.ts
View Options
import
{
resolve
}
from
"path"
;
import
{
App
,
Collection
,
FieldTypes
,
Policies
}
from
"sealious"
;
import
_locreq
from
"locreq"
;
const
locreq
=
_locreq
(
__dirname
);
const
app
=
new
(
class
extends
App
{
config
=
{
upload_path
:
locreq
.
resolve
(
"uploaded_files"
),
datastore_mongo
:
{
host
:
"localhost"
,
port
:
20723
,
db_name
:
"sealious-playground"
,
},
email
:
{
from_address
:
"sealious-playground@example.com"
,
from_name
:
"Sealious playground app"
,
},
};
manifest
=
{
name
:
"Sealious Playground"
,
logo
:
resolve
(
__dirname
,
"../assets/logo.png"
),
version
:
"0.0.1"
,
default_language
:
"en"
,
base_url
:
"localhost:8080"
,
admin_email
:
"admin@example.com"
,
colors
:
{
primary
:
"#5294a1"
,
},
};
collections
=
{
...
App
.
BaseCollections
,
tasks
:
new
(
class
extends
Collection
{
fields
=
{
title
:
new
FieldTypes
.
Text
(),
done
:
new
FieldTypes
.
Boolean
(),
};
defaultPolicy
=
new
Policies
.
Public
();
})(),
};
})();
app
.
start
();
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Dec 24, 14:02 (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557225
Default Alt Text
index.ts (973 B)
Attached To
Mode
rREWRITE Configurable rewriter
Attached
Detach File
Event Timeline
Log In to Comment