This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add new props to features type (#458)
* fix: add new props to features type * chore: remove semicolons
- Loading branch information
Mough
authored
Oct 17, 2021
1 parent
8b9d264
commit 7a3e911
Showing
4 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
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,35 +1,48 @@ | ||
import { ContentType } from '@standardnotes/common' | ||
|
||
import { ComponentArea } from '../Component/ComponentArea' | ||
import { PermissionName } from '../Permission/PermissionName' | ||
import { FeatureIdentifier } from './FeatureIdentifier' | ||
import { ComponentFlag } from './Flag' | ||
|
||
export type ThemeDockIcon = { | ||
type: 'svg' | 'circle', | ||
background_color: string, | ||
foreground_color: string, | ||
border_color: string, | ||
source?: string | ||
type: 'svg' | 'circle'; | ||
background_color: string; | ||
foreground_color: string; | ||
border_color: string; | ||
source?: string; | ||
}; | ||
|
||
export enum NoteType { | ||
Authentication = 'authentication', | ||
Code = 'code', | ||
Markdown = 'markdown', | ||
RichText = 'rich-text', | ||
Spreadsheet = 'spreadsheet', | ||
Task = 'task', | ||
} | ||
|
||
export type FeatureDescription = { | ||
name: string; | ||
identifier: FeatureIdentifier; | ||
permission_name: PermissionName; | ||
content_type?: ContentType; | ||
area?: ComponentArea; | ||
layerable?: boolean; | ||
no_mobile?: boolean; | ||
version: string; | ||
content_type?: ContentType; | ||
deletion_warning?: string; | ||
description: string; | ||
url: string; | ||
dock_icon?: ThemeDockIcon; | ||
download_url: string; | ||
marketing_url: string; | ||
thumbnail_url?: string; | ||
expires_at?: number; | ||
file_type: 'txt' | 'html' | 'md' | 'json'; | ||
flags?: ComponentFlag[]; | ||
identifier: FeatureIdentifier; | ||
/** Whether an editor is interchangable with another editor that has the same file_type */ | ||
interchangeable: boolean; | ||
/** Some themes can be layered on top of other themes */ | ||
layerable?: boolean; | ||
marketing_url: string; | ||
name: string; | ||
no_expire?: boolean; | ||
dock_icon?: ThemeDockIcon; | ||
deletion_warning?: string; | ||
expires_at?: number; | ||
no_mobile?: boolean; | ||
note_type: NoteType; | ||
permission_name: PermissionName; | ||
thumbnail_url?: string; | ||
url: string; | ||
version: string; | ||
}; |
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