feat: data models
This commit is contained in:
parent
688cb9654e
commit
46377bef23
2
.env
2
.env
@ -3,4 +3,4 @@ API_URL='https://pinmenote.com'
|
||||
SHORT_URL='https://pmn.cl'
|
||||
WEBSITE_URL='https://pinmenote.com'
|
||||
IS_PRODUCTION=true
|
||||
OBJ_LIST_LIMIT=10000
|
||||
OBJ_LIST_LIMIT=1000
|
@ -3,4 +3,4 @@ API_URL='http://localhost:3000'
|
||||
SHORT_URL='http://localhost:8001'
|
||||
WEBSITE_URL='http://localhost:4200'
|
||||
IS_PRODUCTION=false
|
||||
OBJ_LIST_LIMIT=10
|
||||
OBJ_LIST_LIMIT=20
|
20
src/common/model/obj-bookmark.model.ts
Normal file
20
src/common/model/obj-bookmark.model.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension).
|
||||
* Copyright (c) 2023 Michal Szczepanski.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
export interface ObjBookmarkDto {
|
||||
value: string;
|
||||
screenshot?: string;
|
||||
}
|
@ -1,3 +1,19 @@
|
||||
export interface ObjNoteDataDto {
|
||||
/*
|
||||
* This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension).
|
||||
* Copyright (c) 2023 Michal Szczepanski.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
export interface ObjNoteDto {
|
||||
value: string;
|
||||
}
|
||||
|
@ -1,17 +1,48 @@
|
||||
import { HtmlContent } from './html.model';
|
||||
|
||||
interface ObjPagePin {
|
||||
/*
|
||||
* This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension).
|
||||
* Copyright (c) 2023 Michal Szczepanski.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
interface ObjPagePinDto {
|
||||
title: string;
|
||||
pinList: PinData[];
|
||||
theme: string;
|
||||
html: PinHtmlDataDto[];
|
||||
css: PinCssDataDto;
|
||||
video: PinVideoDataDto[];
|
||||
}
|
||||
|
||||
interface PinData {
|
||||
interface PinVideoDataDto {
|
||||
currentTime: number;
|
||||
displayTime: number;
|
||||
xpath: string;
|
||||
}
|
||||
|
||||
interface PinHtmlDataDto {
|
||||
parent: string; // bodyStyle
|
||||
screenshot?: string;
|
||||
content: HtmlContent;
|
||||
border: PinBorderData;
|
||||
html: string;
|
||||
text: string; // innerText value of html
|
||||
xpath: string;
|
||||
border: PinBorderDataDto;
|
||||
}
|
||||
|
||||
interface PinBorderData {
|
||||
export interface PinCssDataDto {
|
||||
css: string;
|
||||
href: string[];
|
||||
}
|
||||
|
||||
interface PinBorderDataDto {
|
||||
radius: string;
|
||||
style: string;
|
||||
}
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* This file is part of the pinmenote-extension distribution (https://github.com/pinmenote/pinmenote-extension).
|
||||
* Copyright (c) 2023 Michal Szczepanski.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
export enum ObjViewTypeDto {
|
||||
Screenshot = 'SCREENSHOT',
|
||||
Html = 'HTML'
|
||||
|
Loading…
Reference in New Issue
Block a user