font family for popup, different clip types for notes and whole pages

This commit is contained in:
zadam 2019-07-19 21:05:22 +02:00
parent d18045f905
commit 4618520bf9
7 changed files with 39 additions and 7 deletions

View File

@ -0,0 +1,10 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
</profile>
</component>

3
.idea/misc.xml generated
View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>

24
.idea/workspace.xml generated
View File

@ -2,9 +2,11 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="735e41bc-d058-4745-9f22-50aeb04ec2d7" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/background.js" beforeDir="false" afterPath="$PROJECT_DIR$/background.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/content.js" beforeDir="false" afterPath="$PROJECT_DIR$/content.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/popup/popup.css" beforeDir="false" afterPath="$PROJECT_DIR$/popup/popup.css" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@ -15,6 +17,12 @@
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="JsFlowSettings">
<service-enabled>true</service-enabled>
<exe-path />
<other-services-enabled>true</other-services-enabled>
<auto-save>true</auto-save>
</component>
<component name="ProjectId" id="1OF6mJDrJJ99biD9ZeM2EJmkKPy" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="PropertiesComponent">
@ -23,6 +31,7 @@
<property name="aspect.path.notification.shown" value="true" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="Errors" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
@ -46,7 +55,7 @@
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1563561154310</updated>
<workItem from="1563561158232" duration="469000" />
<workItem from="1563561158232" duration="1538000" />
</task>
<task id="LOCAL-00001" summary="gitignore">
<created>1563561565148</created>
@ -55,7 +64,14 @@
<option name="project" value="LOCAL" />
<updated>1563561565148</updated>
</task>
<option name="localTasksCounter" value="2" />
<task id="LOCAL-00002" summary="gitignore">
<created>1563561631038</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1563561631038</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">

View File

@ -216,7 +216,8 @@ async function saveWholePage() {
async function saveNote(title, content) {
const resp = await triliumServerFacade.callService('POST', 'notes', {
title: title,
content: content
content: content,
clipType: 'note'
});
if (!resp) {

View File

@ -278,7 +278,8 @@ async function prepareMessageResponse(message) {
title: title,
content: body.innerHTML,
images: images,
pageUrl: getPageLocationOrigin() + location.pathname + location.search
pageUrl: getPageLocationOrigin() + location.pathname + location.search,
clipType: 'page'
};
}
else {

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Trilium Web Clipper (dev)",
"version": "0.1.5",
"version": "0.1.0-beta",
"description": "Save web clippings to Trilium Notes.",
"homepage_url": "https://github.com/zadam/trilium-web-clipper",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",

View File

@ -1,6 +1,7 @@
html, body {
width: 300px;
font-size: 12px;
font-family: sans-serif;
}
.button {