Skip to content

Commit

Permalink
updated 路径补充完整
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaole committed Dec 1, 2023
1 parent b82979f commit d78d721
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion dist/lang/relationship-mode.zh-HK.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lang/relationship-mode.zh-HK.min.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
* Released under the MIT License
* https://github.com/mumuy/relationship
*
* Created on: 2023-10-27
* Created on: 2023-12-01
*/
function m(s){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},m(s)}function s(s){var f=function(s,f){if("object"!==m(s)||null===s)return s;var d=s[Symbol.toPrimitive];if(void 0!==d){var o=d.call(s,f||"default");if("object"!==m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===f?String:Number)(s)}(s,"string");return"symbol"===m(f)?f:String(f)}function f(m,f,d){return(f=s(f))in m?Object.defineProperty(m,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):m[f]=d,m}var d,o={guangdong:{name:"廣東",data:(d={f:["老竇"],"f,f":["阿爺"],"f,f,f":["太公"],"f,f,m":["太婆"],"f,m":["阿嫲"],"f,m,f":["太外公"],"f,m,m":["太外婆"],"f,ob":["伯伯"],"f,ob,w":["伯娘"],"f,lb":["阿叔"],"f,lb,w":["阿嬸"],"0,f,xb,d,s":["堂姨甥"],"1,f,xb,d,s":["堂外甥"],"0,f,xb,d,d":["堂姨甥女"],"1,f,xb,d,d":["堂外甥女"],"f,os":["姑母"],"f,ls":["姑姐"],"f,xs,h":["姑丈"],"0,f,xs,d,s":["姑表姨甥"],"1,f,xs,d,s":["姑表外甥"],"0,f,xs,d,d":["姑表姨甥女"],"1,f,xs,d,d":["姑表外甥女"],m:["老母"],"m,f":["阿公"],"m,f,f":["外太公"],"m,f,m":["外太婆"],"m,m":["阿婆"],"m,m,f":["外太外公"],"m,m,m":["外太外婆"],"m,ob":["舅父"],"m,lb":["舅仔"],"m,xb,w":["舅母"],"0,m,xb,d,s":["舅表姨甥"],"1,m,xb,d,s":["舅表外甥"],"0,m,xb,d,d":["舅表姨甥女"],"1,m,xb,d,d":["舅表外甥女"],"m,os":["姨媽"],"m,ls":["姨仔"],"m,xs,h":["姨丈"]},f(d,"0,m,xb,d,s",["姨姨甥"]),f(d,"1,m,xb,d,s",["姨外甥"]),f(d,"0,m,xb,d,d",["姨姨甥女"]),f(d,"1,m,xb,d,d",["姨外甥女"]),f(d,"ob",["大佬"]),f(d,"ob,w",["阿嫂"]),f(d,"lb",["細佬"]),f(d,"lb,w",["弟婦"]),f(d,"xb,s",["侄"]),f(d,"xb,d",["侄女"]),f(d,"os",["家姐"]),f(d,"os,h",["姐夫"]),f(d,"ls",["阿妹"]),f(d,"ls,h",["妹夫"]),f(d,"0,xs,s",["姨甥"]),f(d,"1,xs,s",["外甥"]),f(d,"0,xs,d",["姨甥女"]),f(d,"1,xs,d",["外甥女"]),f(d,"s",["仔"]),f(d,"s,w",["新婦"]),f(d,"s,s",["孫"]),f(d,"s,s,w",["孫新婦"]),f(d,"s,s,s",["息仔"]),f(d,"s,s,d",["息女"]),f(d,"s,d",["孫女"]),f(d,"s,d,h",["孫女婿"]),f(d,"s,d,s",["外息仔"]),f(d,"s,d,d",["外息女"]),f(d,"d",["女"]),f(d,"d,s",["外孫"]),f(d,"d,s,w",["外孫新婦"]),f(d,"d,s,s",["外息仔"]),f(d,"d,s,d",["外息女"]),f(d,"d,d",["外孫女"]),f(d,"d,d,h",["外孫女婿"]),f(d,"d,d,s",["外息仔"]),f(d,"d,d,d",["外息女"]),d)},north:{name:"北方",data:{"m,m":["姥姥"],"m,m,xs":["姨姥姥"],"m,m,xs,h":["姨姥爺"],"m,m,xb":["舅姥爺"],"m,m,xb,w":["舅姥姥"],"m,f":["姥爺"],"m,f,xs":["姑姥姥"],"m,f,xs,h":["姑姥爺"],"m,f,ob":["大姥爺"],"m,f,ob,w":["大姥姥"],"m,f,lb":["小姥爺"],"m,f,lb,w":["小姥姥"],"f,ob":["大爺"],"f,ob,w":["大娘"]}}};export{o as default};
2 changes: 1 addition & 1 deletion dist/lang/relationship.zh-HK.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lang/relationship.zh-HK.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/relationship-mode.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/relationship-mode.min.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
* Released under the MIT License
* https://github.com/mumuy/relationship
*
* Created on: 2023-10-27
* Created on: 2023-12-01
*/
function m(s){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},m(s)}function s(s){var f=function(s,f){if("object"!==m(s)||null===s)return s;var d=s[Symbol.toPrimitive];if(void 0!==d){var o=d.call(s,f||"default");if("object"!==m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===f?String:Number)(s)}(s,"string");return"symbol"===m(f)?f:String(f)}function f(m,f,d){return(f=s(f))in m?Object.defineProperty(m,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):m[f]=d,m}var d,o={guangdong:{name:"广东",data:(d={f:["老窦"],"f,f":["阿爷"],"f,f,f":["太公"],"f,f,m":["太婆"],"f,m":["阿嫲"],"f,m,f":["太外公"],"f,m,m":["太外婆"],"f,ob":["伯伯"],"f,ob,w":["伯娘"],"f,lb":["阿叔"],"f,lb,w":["阿婶"],"0,f,xb,d,s":["堂姨甥"],"1,f,xb,d,s":["堂外甥"],"0,f,xb,d,d":["堂姨甥女"],"1,f,xb,d,d":["堂外甥女"],"f,os":["姑母"],"f,ls":["姑姐"],"f,xs,h":["姑丈"],"0,f,xs,d,s":["姑表姨甥"],"1,f,xs,d,s":["姑表外甥"],"0,f,xs,d,d":["姑表姨甥女"],"1,f,xs,d,d":["姑表外甥女"],m:["老母"],"m,f":["阿公"],"m,f,f":["外太公"],"m,f,m":["外太婆"],"m,m":["阿婆"],"m,m,f":["外太外公"],"m,m,m":["外太外婆"],"m,ob":["舅父"],"m,lb":["舅仔"],"m,xb,w":["舅母"],"0,m,xb,d,s":["舅表姨甥"],"1,m,xb,d,s":["舅表外甥"],"0,m,xb,d,d":["舅表姨甥女"],"1,m,xb,d,d":["舅表外甥女"],"m,os":["姨妈"],"m,ls":["姨仔"],"m,xs,h":["姨丈"]},f(d,"0,m,xb,d,s",["姨姨甥"]),f(d,"1,m,xb,d,s",["姨外甥"]),f(d,"0,m,xb,d,d",["姨姨甥女"]),f(d,"1,m,xb,d,d",["姨外甥女"]),f(d,"ob",["大佬"]),f(d,"ob,w",["阿嫂"]),f(d,"lb",["细佬"]),f(d,"lb,w",["弟妇"]),f(d,"xb,s",["侄"]),f(d,"xb,d",["侄女"]),f(d,"os",["家姐"]),f(d,"os,h",["姐夫"]),f(d,"ls",["阿妹"]),f(d,"ls,h",["妹夫"]),f(d,"0,xs,s",["姨甥"]),f(d,"1,xs,s",["外甥"]),f(d,"0,xs,d",["姨甥女"]),f(d,"1,xs,d",["外甥女"]),f(d,"s",["仔"]),f(d,"s,w",["新妇"]),f(d,"s,s",["孙"]),f(d,"s,s,w",["孙新妇"]),f(d,"s,s,s",["息仔"]),f(d,"s,s,d",["息女"]),f(d,"s,d",["孙女"]),f(d,"s,d,h",["孙女婿"]),f(d,"s,d,s",["外息仔"]),f(d,"s,d,d",["外息女"]),f(d,"d",["女"]),f(d,"d,s",["外孙"]),f(d,"d,s,w",["外孙新妇"]),f(d,"d,s,s",["外息仔"]),f(d,"d,s,d",["外息女"]),f(d,"d,d",["外孙女"]),f(d,"d,d,h",["外孙女婿"]),f(d,"d,d,s",["外息仔"]),f(d,"d,d,d",["外息女"]),d)},north:{name:"北方",data:{"m,m":["姥姥"],"m,m,xs":["姨姥姥"],"m,m,xs,h":["姨姥爷"],"m,m,xb":["舅姥爷"],"m,m,xb,w":["舅姥姥"],"m,f":["姥爷"],"m,f,xs":["姑姥姥"],"m,f,xs,h":["姑姥爷"],"m,f,ob":["大姥爷"],"m,f,ob,w":["大姥姥"],"m,f,lb":["小姥爷"],"m,f,lb,w":["小姥姥"],"f,ob":["大爷"],"f,ob,w":["大娘"]}}};export{o as default};
2 changes: 1 addition & 1 deletion dist/relationship.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/relationship.min.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/module/cache.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* 缓存数据
*/
import _input from './data/input';
import {modeData} from './mode';
import _input from './data/input.js';
import {modeData} from './mode.js';

let _hash = Object.assign({},modeData,_input);
let cacheData = {};
Expand Down
8 changes: 4 additions & 4 deletions src/module/id.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* 标识符 - 唯一性关系链,将【关系链】转换成【中文表述】
*/
import _pair from './data/pair';
import _pair from './data/pair.js';

import {number2zh} from './unit';
import {selector2id} from './selector';
import {modeData} from './mode';
import {number2zh} from './unit.js';
import {selector2id} from './selector.js';
import {modeData} from './mode.js';

// 逆转ID
export function reverseId(id,sex){
Expand Down
10 changes: 5 additions & 5 deletions src/module/map.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
* 完整关系链数据 - 合并各类关系链数据
*/
import _prefix from './data/prefix';
import _branch from './data/branch';
import _main from './data/main';
import _multipie from './data/multiple';
import _prefix from './data/prefix.js';
import _branch from './data/branch.js';
import _main from './data/main.js';
import _multipie from './data/multiple.js';

import {expandSelector} from './selector';
import {expandSelector} from './selector.js';

let _map = Object.assign({},_multipie);
let getMap = function(prefixMap,branch){
Expand Down
2 changes: 1 addition & 1 deletion src/module/mode.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 模式数据
*/
import _map from './map';
import _map from './map.js';

let _mode = {}; // 模式缓存
let modeData = Object.assign({},_map); // 最终数据
Expand Down
2 changes: 1 addition & 1 deletion src/module/options.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* 通过表达式获取配置
*/
import _expression from './rule/expression';
import _expression from './rule/expression.js';

export function getOptions(text){
for(let item of _expression){
Expand Down
12 changes: 6 additions & 6 deletions src/module/selector.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* 选择器 - 非唯一性关系链,将【中文表述】转换为【关系链】
*/
import _filter from './rule/filter';
import _replace from './rule/replace';
import _similar from './rule/similar';
import _filter from './rule/filter.js';
import _replace from './rule/replace.js';
import _similar from './rule/similar.js';

import {zh2number} from './unit';
import {reverseId,filterId,getGenById} from './id';
import {cacheData} from './cache';
import {zh2number} from './unit.js';
import {reverseId,filterId,getGenById} from './id.js';
import {cacheData} from './cache.js';

// 获得最简
let getOptimal = function(options){
Expand Down
4 changes: 2 additions & 2 deletions src/relationship-mode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import guangdong from './locale/guangdong';
import north from './locale/north';
import guangdong from './locale/guangdong.js';
import north from './locale/north.js';

export default {
guangdong,
Expand Down
8 changes: 4 additions & 4 deletions src/relationship.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {getOptions} from './module/options';
import {getSelectors,mergeSelector,selector2id} from './module/selector';
import {reverseId,getItemsById,getChainById,getPairsById} from './module/id';
import {setModeData,getModeData,modeData} from './module/mode';
import {getOptions} from './module/options.js';
import {getSelectors,mergeSelector,selector2id} from './module/selector.js';
import {reverseId,getItemsById,getChainById,getPairsById} from './module/id.js';
import {setModeData,getModeData,modeData} from './module/mode.js';

// 对外方法
let relationship = function (parameter){
Expand Down

0 comments on commit d78d721

Please sign in to comment.