Skip to content

Commit

Permalink
v4.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Dec 27, 2024
1 parent fc3cd5a commit 165b587
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
22 changes: 14 additions & 8 deletions application/net/wiki/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,8 @@ function module_code(library_namespace) {
options.comment = options.summary;
}

var structured_data = library_namespace
.new_options(options.structured_data);
var structured_data = Object.assign(Object.create(null),
options.structured_data);

// upload_text: media description
if (!options.text) {
Expand All @@ -1240,6 +1240,7 @@ function module_code(library_namespace) {
other_fields : options.other_fields || options['other fields']
|| ''
};
// inception (P571) 成立或建立時間
if (!structured_data.date)
structured_data.date = options.text.date;
} else {
Expand Down Expand Up @@ -1441,6 +1442,7 @@ function module_code(library_namespace) {
}

if (!structured_data.date) {
// inception (P571) 成立或建立時間
structured_data.date = options.date;
}
if (structured_data.location
Expand Down Expand Up @@ -1533,22 +1535,26 @@ function module_code(library_namespace) {
var KEY_summary_name = 'summary_name',
// {inner} alias
structured_data_mapping = {
// 描述地坐標 (P9149) [[Commons:Structured data/Modeling/Location]]
// [[Commons:Structured data/Modeling/Location]]
// coordinates of depicted place (P9149) 描述地坐標
location : 'P9149',
// 描繪內容 (P180) [[Commons:Structured data/Modeling/Depiction]]
// [[Commons:Structured data/Modeling/Depiction]]
// depicts (P180) 描繪內容
depicts : 'P180',

// [[Commons:Structured data/Modeling/Properties table]]
// TODO: 文件格式 (P2701)
// TODO: file format (P2701) 文件格式
'file format' : 'P2701',
// TODO: 資料大小 (P3575)
// TODO: data size (P3575) 資料大小
'data size' : 'P3575',

'media type' : 'P1163',

// 成立或建立時間 (P571) [[Commons:Structured data/Modeling/Date]]
// [[Commons:Structured data/Modeling/Date]]
// inception (P571) 成立或建立時間
'created datetime' : 'P571',
date : 'P571'
date : 'P571',
inception : 'P571'
}, structured_data_config = Object.create(null);
Object.keys(structured_data_mapping).forEach(function(name) {
var property_id = structured_data_mapping[name];
Expand Down
4 changes: 3 additions & 1 deletion extension/zh_conversion/OpenCC/additional.to_TW.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3132,7 +3132,9 @@
干戚 干戚
// 《我只想安静的做个苟道中人》 上干云天, (~干<COO>v:连 nd:上+v:干+n:云天+wp:,)
干云 干雲
// [general.TW.txt] 《道君》 也不知万洞天府动这么大干戈是什么意思。 (~干戈<VOB>v:动 d:也+v:不知+ns:万洞天府+v:动+r:这么+a:大+n:干戈+v:是+r:什么+n:意思+wp:。)
// 《长生从宗门杂役开始》 不灭天魔功在灵界已经是凶名赫赫,被认为大干天和, (~干<VOB>v:认为 d:不+v:灭+n:天魔+n:功+p:在+n:灵界+d:已经+v:是+n:凶名+z:赫赫+wp:,+p:被+v:认为+a:大+v:干+n:天和+wp:,) 單純 zh_conversion 轉換過程: 大干→大幹
大干天和 大干天和
// [general.TW.txt] 《道君》 也不知万洞天府动这么大干戈是什么意思。 (~干戈<VOB>v:动 d:也+v:不知+ns:万洞天府+v:动+r:这么+a:大+n:干戈+v:是+r:什么+n:意思+wp:。) 單純 zh_conversion 轉換過程: 大干→大幹
大干戈 大干戈
// 《帝霸》 说不定能干戈化玉帛。 (~干戈化<COO>v:来得及 i:说不定+v:能+n:干戈化+n:玉帛+wp:。)
能干戈 能干戈
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cejs",
"title": "CeJS",
"version": "4.5.9",
"version": "4.5.10",
"description": "A JavaScript module framework that is simple to use.",
"keywords": [
"arbitrary-precision",
Expand Down

0 comments on commit 165b587

Please sign in to comment.