first commit
This commit is contained in:
+84
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"pictureBedFlag": false,
|
||||
"pictureBedSetting": {
|
||||
"url": "http://127.0.0.1:36677/upload"
|
||||
},
|
||||
"pictureBedType": "PicGo",
|
||||
"arraySettings": [
|
||||
{
|
||||
"arrayName": "ArrayType1",
|
||||
"arrayStart": "",
|
||||
"arrayElementStart": "[[",
|
||||
"arraySpiltV2": ",",
|
||||
"arrayElementEnd": "]]",
|
||||
"arrayEnd": "",
|
||||
"index": 1
|
||||
}
|
||||
],
|
||||
"onlineSettingsFileName": "obsidian_douban_plugin_online_settings.json",
|
||||
"onlineSettingsGistId": "35693f9ece9bd6abba98f94e81afde19",
|
||||
"movieTemplateFile": "",
|
||||
"bookTemplateFile": "",
|
||||
"musicTemplateFile": "",
|
||||
"noteTemplateFile": "",
|
||||
"gameTemplateFile": "",
|
||||
"teleplayTemplateFile": "",
|
||||
"searchUrl": "https://www.douban.com/search?q=",
|
||||
"dateFormat": "yyyy-MM-DD",
|
||||
"timeFormat": "HH:mm:ss",
|
||||
"arrayStart": "",
|
||||
"arrayElementStart": "\\n - ",
|
||||
"arraySpiltV2": "",
|
||||
"arrayElementEnd": "",
|
||||
"arrayEnd": "",
|
||||
"personNameMode": "CH",
|
||||
"dataFilePath": "",
|
||||
"dataFileNamePath": "/{{type}}/{{title}}",
|
||||
"statusBar": true,
|
||||
"debugMode": false,
|
||||
"customProperties": [
|
||||
{
|
||||
"name": "myType",
|
||||
"value": "movie",
|
||||
"field": "movie"
|
||||
},
|
||||
{
|
||||
"name": "myType",
|
||||
"value": "book",
|
||||
"field": "book"
|
||||
},
|
||||
{
|
||||
"name": "myType",
|
||||
"value": "music",
|
||||
"field": "music"
|
||||
},
|
||||
{
|
||||
"name": "myType",
|
||||
"value": "note",
|
||||
"field": "note"
|
||||
},
|
||||
{
|
||||
"name": "myType",
|
||||
"value": "game",
|
||||
"field": "game"
|
||||
},
|
||||
{
|
||||
"name": "myType",
|
||||
"value": "teleplay",
|
||||
"field": "teleplay"
|
||||
}
|
||||
],
|
||||
"loginCookiesContent": "",
|
||||
"loginHeadersContent": "{\"Accept\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7\",\"Accept-Encoding\":\"gzip, deflate, br, zstd\",\"Accept-Language\":\"zh-CN\",\"Cookie\":\"bid=jJ9WE9RoOn0; dbcl2=\\\"281896221:wPG93VPCMpI\\\"\",\"Referer\":\"https://accounts.douban.com/\",\"Sec-Fetch-Mode\":\"navigate\",\"Sec-Fetch-Site\":\"same-site\",\"Sec-Fetch-User\":\"?1\",\"Upgrade-Insecure-Requests\":\"1\",\"User-Agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.8.10 Chrome/132.0.6834.196 Electron/34.2.0 Safari/537.36\"}",
|
||||
"cacheImage": true,
|
||||
"cacheHighQuantityImage": true,
|
||||
"attachmentPath": "assets",
|
||||
"syncHandledDataArray": [],
|
||||
"scoreSetting": {
|
||||
"starFull": "⭐",
|
||||
"starEmpty": "☆",
|
||||
"displayStarEmpty": false,
|
||||
"maxStar": 5
|
||||
},
|
||||
"searchDefaultType": "all"
|
||||
}
|
||||
+26348
File diff suppressed because one or more lines are too long
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "obsidian-douban-plugin",
|
||||
"name": "Douban",
|
||||
"version": "2.3.3",
|
||||
"minAppVersion": "0.12.0",
|
||||
"description": "This is a plugin that can import movies/books/musics/notes/games info data from Douban for Obsidian .",
|
||||
"author": "Wanxp",
|
||||
"authorUrl": "https://obsidian-douban.wxp.hk",
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
+180
@@ -0,0 +1,180 @@
|
||||
/* 获取主题颜色并定义新的颜色 */
|
||||
:root {
|
||||
--obsidian-primary-color: var(--text-normal);
|
||||
--obsidian-secondary-color: var(--background-primary);
|
||||
|
||||
/* 定义新的颜色,稍微调整亮度或饱和度 */
|
||||
--plugin-primary-color: hsl(var(--obsidian-primary-color-h), var(--obsidian-primary-color-s), calc(var(--obsidian-primary-color-l) + 10%));
|
||||
--plugin-secondary-color: hsl(var(--obsidian-secondary-color-h), var(--obsidian-secondary-color-s), calc(var(--obsidian-secondary-color-l) - 10%));
|
||||
}
|
||||
|
||||
|
||||
|
||||
.obsidian_douban_settings_area {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_cookie_login > .setting-item-control > textarea {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_textField {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_text {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_input {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_button {
|
||||
margin: auto;
|
||||
vertical-align: bottom;
|
||||
|
||||
}
|
||||
|
||||
.obsidian_douban_search_input {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.obsidian_douban_search_input_type {
|
||||
margin-left: 5px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.obsidian_douban_search_input_content {
|
||||
margin-left: 5px;
|
||||
width: 80%;
|
||||
float: left;
|
||||
|
||||
}
|
||||
|
||||
.obsidian_douban_search_controls {
|
||||
margin-top: 20px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.obsidian_douban_search_button {
|
||||
margin-top: 20px;
|
||||
margin-right: 5px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.obsidian_douban_cancel_button {
|
||||
margin-top: 20px;
|
||||
margin-right: 5px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.obsidian_douban_status_button {
|
||||
margin-top: 5px;
|
||||
margin-right: 10px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_desc.has_error {
|
||||
color: #fb464c;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_input.has-error {
|
||||
color: #fb464c;
|
||||
border-color: #fb464c;
|
||||
}
|
||||
|
||||
|
||||
.obsidian_douban_sync_config{
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
margin-bottom: 10px;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.obsidian_douban_sync_selections{
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
|
||||
.obsidian_douban_sync_config_text{
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.obsidian_douban_sync_slider {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin-left: 5px;
|
||||
margin-bottom: 1px;
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
|
||||
/* Add this CSS to your stylesheet */
|
||||
.obsidian_douban_settings_tab_container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_tab_headers {
|
||||
display: flex;
|
||||
/*border-bottom: 1px solid #ccc;*/
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_tab_header {
|
||||
padding: 10px;
|
||||
cursor: pointer;
|
||||
/*border: 1px solid #ccc;*/
|
||||
border-bottom: none;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.obsidian_douban_settings_tab_contents {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_tab_content {
|
||||
display: none;
|
||||
padding: 10px;
|
||||
/*border: 1px solid #ccc;*/
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_tab_header.active {
|
||||
background-color: var(--plugin-primary-color);
|
||||
font-weight: bold;
|
||||
border: 1px solid var(--plugin-secondary-color);
|
||||
border-radius: 8px 8px 0 0; /* Rounded corners for the top */
|
||||
}
|
||||
|
||||
.obsidian_douban_settings_tab_content.active {
|
||||
background-color: var(--plugin-primary-color);
|
||||
display: block;
|
||||
padding: 10px;
|
||||
border: 1px solid var(--plugin-secondary-color);
|
||||
border-radius: 0 8px 8px 8px; /* Rounded corners for the bottom */
|
||||
}
|
||||
|
||||
.obsidian_douban_template_file_select {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
.setting-item-control.obsidian_douban_template_file_select > div.search-input-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user