Skip to content

Commit e6d6cd9

Browse files
author
Sven
committed
feat:update README
1 parent e552a1e commit e6d6cd9

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ SwiftJSONModeler提供多种自定义可选设置,可通过插件的Config选
163163

164164
![host](./Sources/yapiHostId.png)
165165

166+
**多 token配置**
167+
168+
在开发中可能团队同时开发多个项目,就会存在多个token,可以通过配置,转模时切换 token
169+
170+
![](./Sources/mutilToken.png)
171+
166172
## 设置快捷键
167173

168174
可以给插件设置快捷键,快速转换模型

Sources/mutilToken.png

64.5 KB
Loading

SwiftJSONModeler For Xcode.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@
621621
"$(inherited)",
622622
"@executable_path/../Frameworks",
623623
);
624-
MARKETING_VERSION = 1.4.1;
624+
MARKETING_VERSION = 2.0.0;
625625
PRODUCT_BUNDLE_IDENTIFIER = com.lifu.SwiftJSONModeler;
626626
PRODUCT_NAME = "$(TARGET_NAME)";
627627
SWIFT_VERSION = 5.0;
@@ -643,7 +643,7 @@
643643
"$(inherited)",
644644
"@executable_path/../Frameworks",
645645
);
646-
MARKETING_VERSION = 1.4.1;
646+
MARKETING_VERSION = 2.0.0;
647647
PRODUCT_BUNDLE_IDENTIFIER = com.lifu.SwiftJSONModeler;
648648
PRODUCT_NAME = "$(TARGET_NAME)";
649649
SWIFT_VERSION = 5.0;
@@ -665,7 +665,7 @@
665665
"@executable_path/../Frameworks",
666666
"@executable_path/../../../../Frameworks",
667667
);
668-
MARKETING_VERSION = 1.4.1;
668+
MARKETING_VERSION = 2.0.0;
669669
PRODUCT_BUNDLE_IDENTIFIER = com.lifu.SwiftJSONModeler;
670670
PRODUCT_NAME = "$(TARGET_NAME)";
671671
SKIP_INSTALL = YES;
@@ -688,7 +688,7 @@
688688
"@executable_path/../Frameworks",
689689
"@executable_path/../../../../Frameworks",
690690
);
691-
MARKETING_VERSION = 1.4.1;
691+
MARKETING_VERSION = 2.0.0;
692692
PRODUCT_BUNDLE_IDENTIFIER = com.lifu.SwiftJSONModeler;
693693
PRODUCT_NAME = "$(TARGET_NAME)";
694694
SKIP_INSTALL = YES;

SwiftJSONModeler For Xcode/Base.lproj/Main.storyboard

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,16 @@
10451045
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
10461046
</textFieldCell>
10471047
</textField>
1048+
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="tHc-az-ITJ">
1049+
<rect key="frame" x="24" y="43" width="94" height="32"/>
1050+
<buttonCell key="cell" type="push" title="使用指南" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="0tb-VI-0xc">
1051+
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
1052+
<font key="font" size="13" name=".PingFangSC-Regular"/>
1053+
</buttonCell>
1054+
<connections>
1055+
<action selector="guideButtonTap:" target="5gI-5U-AMq" id="ut3-46-pbJ"/>
1056+
</connections>
1057+
</button>
10481058
</subviews>
10491059
<constraints>
10501060
<constraint firstItem="cf4-vW-LAT" firstAttribute="top" secondItem="iFK-rh-eoW" secondAttribute="bottom" constant="20" id="0Fy-Bq-4Hz"/>
@@ -1063,6 +1073,7 @@
10631073
<constraint firstItem="S2C-lh-p4C" firstAttribute="leading" secondItem="ERx-hH-rdd" secondAttribute="leading" constant="30" id="EYW-7r-aet"/>
10641074
<constraint firstItem="TgM-de-NPF" firstAttribute="leading" secondItem="bDa-kJ-Mhx" secondAttribute="trailing" constant="8" id="F1p-jz-aRa"/>
10651075
<constraint firstItem="KDI-lJ-ln3" firstAttribute="centerY" secondItem="o35-tq-gm8" secondAttribute="centerY" id="Fz0-5m-ZNX"/>
1076+
<constraint firstItem="tHc-az-ITJ" firstAttribute="leading" secondItem="FOi-zT-B7B" secondAttribute="leading" id="KTC-Ty-T0u"/>
10661077
<constraint firstItem="TgM-de-NPF" firstAttribute="centerY" secondItem="bDa-kJ-Mhx" secondAttribute="centerY" id="KeH-C1-gk2"/>
10671078
<constraint firstItem="n0v-j5-oIk" firstAttribute="top" secondItem="cf4-vW-LAT" secondAttribute="bottom" constant="20" id="L37-4q-ULx"/>
10681079
<constraint firstItem="a5h-sk-bjS" firstAttribute="centerY" secondItem="wf5-gB-SJa" secondAttribute="centerY" id="NfI-lb-pf1"/>
@@ -1082,6 +1093,7 @@
10821093
<constraint firstAttribute="trailing" secondItem="cf4-vW-LAT" secondAttribute="trailing" constant="30" id="o7Q-Xd-TsJ"/>
10831094
<constraint firstItem="a5h-sk-bjS" firstAttribute="leading" secondItem="wf5-gB-SJa" secondAttribute="trailing" constant="8" id="qGF-9f-JRO"/>
10841095
<constraint firstAttribute="trailing" secondItem="FOi-zT-B7B" secondAttribute="trailing" constant="30" id="rPH-o2-TBh"/>
1096+
<constraint firstItem="vSj-38-HG4" firstAttribute="centerY" secondItem="tHc-az-ITJ" secondAttribute="centerY" id="sOs-BC-B9c"/>
10851097
<constraint firstItem="wf5-gB-SJa" firstAttribute="leading" secondItem="ERx-hH-rdd" secondAttribute="leading" constant="30" id="tWd-eT-x7t"/>
10861098
<constraint firstItem="szC-Is-Jzs" firstAttribute="trailing" secondItem="KDI-lJ-ln3" secondAttribute="trailing" id="uJj-V6-xvc"/>
10871099
<constraint firstItem="cR5-nc-6qZ" firstAttribute="top" secondItem="o35-tq-gm8" secondAttribute="bottom" constant="40" id="zjR-Nn-pvG"/>
@@ -1090,6 +1102,7 @@
10901102
<connections>
10911103
<outlet property="configTokenButton" destination="Mih-Hn-oxm" id="nRJ-G9-2TX"/>
10921104
<outlet property="confromTextField" destination="a5h-sk-bjS" id="pka-iP-L8P"/>
1105+
<outlet property="guideButton" destination="tHc-az-ITJ" id="vmU-k2-1vj"/>
10931106
<outlet property="isAllowOptionalBtn" destination="EHm-R1-Ay3" id="Za1-zF-4TA"/>
10941107
<outlet property="isArrayEmptyBtn" destination="Cn0-Pn-vUD" id="Krz-HD-8fv"/>
10951108
<outlet property="isShowOptionalBtn" destination="4Ca-td-HhY" id="b6i-Hc-wLp"/>

SwiftJSONModeler For Xcode/Controller/ConfigViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class ConfigViewController: NSViewController {
3030
@IBOutlet weak var configTokenButton: NSButton!
3131
@IBOutlet weak var yapiHostTextField: NSTextField!
3232
@IBOutlet weak var remarkTextField: NSTextField!
33+
@IBOutlet weak var guideButton: NSButton!
3334

3435
override func viewDidLoad() {
3536
super.viewDidLoad()
@@ -102,6 +103,9 @@ class ConfigViewController: NSViewController {
102103
}
103104
}
104105

106+
@IBAction func guideButtonTap(_ sender: NSButton) {
107+
NSWorkspace.shared.open(URL(string: "https://gitee.com/Sven001/JSONSwfitModel")!)
108+
}
105109

106110
@IBAction func saveButtonTap(_ sender: NSButton) {
107111
config.conform = confromTextField.stringValue

0 commit comments

Comments
 (0)