瀏覽代碼

completed

Elliott Stansbury 6 年之前
父節點
當前提交
7cb4cbf4c7
共有 6 個檔案被更改,包括 355 行新增20 行删除
  1. 9
    0
      .idea/JSON-Lab-1.iml
  2. 6
    0
      .idea/misc.xml
  3. 8
    0
      .idea/modules.xml
  4. 6
    0
      .idea/vcs.xml
  5. 305
    0
      .idea/workspace.xml
  6. 21
    20
      js/colors.js

+ 9
- 0
.idea/JSON-Lab-1.iml 查看文件

@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+    <exclude-output />
5
+    <content url="file://$MODULE_DIR$" />
6
+    <orderEntry type="inheritedJdk" />
7
+    <orderEntry type="sourceFolder" forTests="false" />
8
+  </component>
9
+</module>

+ 6
- 0
.idea/misc.xml 查看文件

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="JavaScriptSettings">
4
+    <option name="languageLevel" value="ES6" />
5
+  </component>
6
+</project>

+ 8
- 0
.idea/modules.xml 查看文件

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/JSON-Lab-1.iml" filepath="$PROJECT_DIR$/.idea/JSON-Lab-1.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml 查看文件

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="" vcs="Git" />
5
+  </component>
6
+</project>

+ 305
- 0
.idea/workspace.xml 查看文件

@@ -0,0 +1,305 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="d5a7f942-31ab-4101-b0bf-715015080f4b" name="Default Changelist" comment="">
5
+      <change beforePath="$PROJECT_DIR$/js/colors.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/colors.js" afterDir="false" />
6
+    </list>
7
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+    <option name="SHOW_DIALOG" value="false" />
9
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+    <option name="LAST_RESOLUTION" value="IGNORE" />
12
+  </component>
13
+  <component name="FUSProjectUsageTrigger">
14
+    <session id="-298655215">
15
+      <usages-collector id="statistics.lifecycle.project">
16
+        <counts>
17
+          <entry key="project.open.time.1" value="1" />
18
+          <entry key="project.opened" value="1" />
19
+        </counts>
20
+      </usages-collector>
21
+      <usages-collector id="statistics.file.extensions.open">
22
+        <counts>
23
+          <entry key="css" value="1" />
24
+          <entry key="html" value="1" />
25
+          <entry key="iml" value="1" />
26
+          <entry key="jpg" value="1" />
27
+          <entry key="js" value="2" />
28
+          <entry key="md" value="1" />
29
+          <entry key="png" value="1" />
30
+        </counts>
31
+      </usages-collector>
32
+      <usages-collector id="statistics.file.types.open">
33
+        <counts>
34
+          <entry key="CSS" value="1" />
35
+          <entry key="HTML" value="1" />
36
+          <entry key="IDEA_MODULE" value="1" />
37
+          <entry key="Image" value="2" />
38
+          <entry key="JavaScript" value="2" />
39
+          <entry key="Markdown" value="1" />
40
+        </counts>
41
+      </usages-collector>
42
+      <usages-collector id="statistics.file.extensions.edit">
43
+        <counts>
44
+          <entry key="js" value="55" />
45
+        </counts>
46
+      </usages-collector>
47
+      <usages-collector id="statistics.file.types.edit">
48
+        <counts>
49
+          <entry key="JavaScript" value="55" />
50
+        </counts>
51
+      </usages-collector>
52
+    </session>
53
+  </component>
54
+  <component name="FileEditorManager">
55
+    <leaf>
56
+      <file pinned="false" current-in-tab="false">
57
+        <entry file="file://$PROJECT_DIR$/README.md">
58
+          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
59
+            <state split_layout="SPLIT">
60
+              <first_editor />
61
+              <second_editor />
62
+            </state>
63
+          </provider>
64
+        </entry>
65
+      </file>
66
+      <file pinned="false" current-in-tab="false">
67
+        <entry file="file://$PROJECT_DIR$/index.html">
68
+          <provider selected="true" editor-type-id="text-editor" />
69
+        </entry>
70
+      </file>
71
+      <file pinned="false" current-in-tab="false">
72
+        <entry file="file://$PROJECT_DIR$/js/index.js">
73
+          <provider selected="true" editor-type-id="text-editor" />
74
+        </entry>
75
+      </file>
76
+      <file pinned="false" current-in-tab="true">
77
+        <entry file="file://$PROJECT_DIR$/js/colors.js">
78
+          <provider selected="true" editor-type-id="text-editor">
79
+            <state relative-caret-position="135">
80
+              <caret line="9" column="7" lean-forward="true" selection-start-line="9" selection-start-column="7" selection-end-line="9" selection-end-column="7" />
81
+            </state>
82
+          </provider>
83
+        </entry>
84
+      </file>
85
+      <file pinned="false" current-in-tab="false">
86
+        <entry file="file://$PROJECT_DIR$/.idea/JSON-Lab-1.iml">
87
+          <provider selected="true" editor-type-id="text-editor" />
88
+        </entry>
89
+      </file>
90
+      <file pinned="false" current-in-tab="false">
91
+        <entry file="file://$PROJECT_DIR$/css/style.css">
92
+          <provider selected="true" editor-type-id="text-editor">
93
+            <state relative-caret-position="-447" />
94
+          </provider>
95
+        </entry>
96
+      </file>
97
+      <file pinned="false" current-in-tab="false">
98
+        <entry file="file://$PROJECT_DIR$/images/logos/js_logo.png">
99
+          <provider selected="true" editor-type-id="images" />
100
+        </entry>
101
+      </file>
102
+      <file pinned="false" current-in-tab="false">
103
+        <entry file="file://$PROJECT_DIR$/images/logos/zip_logo.jpg">
104
+          <provider selected="true" editor-type-id="images" />
105
+        </entry>
106
+      </file>
107
+    </leaf>
108
+  </component>
109
+  <component name="Git.Settings">
110
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
111
+  </component>
112
+  <component name="IdeDocumentHistory">
113
+    <option name="CHANGED_PATHS">
114
+      <list>
115
+        <option value="$PROJECT_DIR$/js/colors.js" />
116
+      </list>
117
+    </option>
118
+  </component>
119
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
120
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
121
+  <component name="JsGulpfileManager">
122
+    <detection-done>true</detection-done>
123
+    <sorting>DEFINITION_ORDER</sorting>
124
+  </component>
125
+  <component name="ProjectFrameBounds" extendedState="6">
126
+    <option name="y" value="23" />
127
+    <option name="width" value="1280" />
128
+    <option name="height" value="723" />
129
+  </component>
130
+  <component name="ProjectView">
131
+    <navigator proportions="" version="1">
132
+      <foldersAlwaysOnTop value="true" />
133
+    </navigator>
134
+    <panes>
135
+      <pane id="PackagesPane" />
136
+      <pane id="ProjectPane">
137
+        <subPane>
138
+          <expand>
139
+            <path>
140
+              <item name="JSON-Lab-1" type="b2602c69:ProjectViewProjectNode" />
141
+              <item name="JSON-Lab-1" type="462c0819:PsiDirectoryNode" />
142
+            </path>
143
+            <path>
144
+              <item name="JSON-Lab-1" type="b2602c69:ProjectViewProjectNode" />
145
+              <item name="JSON-Lab-1" type="462c0819:PsiDirectoryNode" />
146
+              <item name=".idea" type="462c0819:PsiDirectoryNode" />
147
+            </path>
148
+            <path>
149
+              <item name="JSON-Lab-1" type="b2602c69:ProjectViewProjectNode" />
150
+              <item name="JSON-Lab-1" type="462c0819:PsiDirectoryNode" />
151
+              <item name="css" type="462c0819:PsiDirectoryNode" />
152
+            </path>
153
+            <path>
154
+              <item name="JSON-Lab-1" type="b2602c69:ProjectViewProjectNode" />
155
+              <item name="JSON-Lab-1" type="462c0819:PsiDirectoryNode" />
156
+              <item name="images" type="462c0819:PsiDirectoryNode" />
157
+            </path>
158
+            <path>
159
+              <item name="JSON-Lab-1" type="b2602c69:ProjectViewProjectNode" />
160
+              <item name="JSON-Lab-1" type="462c0819:PsiDirectoryNode" />
161
+              <item name="images" type="462c0819:PsiDirectoryNode" />
162
+              <item name="logos" type="462c0819:PsiDirectoryNode" />
163
+            </path>
164
+            <path>
165
+              <item name="JSON-Lab-1" type="b2602c69:ProjectViewProjectNode" />
166
+              <item name="JSON-Lab-1" type="462c0819:PsiDirectoryNode" />
167
+              <item name="js" type="462c0819:PsiDirectoryNode" />
168
+            </path>
169
+          </expand>
170
+          <select />
171
+        </subPane>
172
+      </pane>
173
+      <pane id="Scope" />
174
+    </panes>
175
+  </component>
176
+  <component name="PropertiesComponent">
177
+    <property name="WebServerToolWindowFactoryState" value="false" />
178
+    <property name="aspect.path.notification.shown" value="true" />
179
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543414642312" />
180
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
181
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
182
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
183
+  </component>
184
+  <component name="RunDashboard">
185
+    <option name="ruleStates">
186
+      <list>
187
+        <RuleState>
188
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
189
+        </RuleState>
190
+        <RuleState>
191
+          <option name="name" value="StatusDashboardGroupingRule" />
192
+        </RuleState>
193
+      </list>
194
+    </option>
195
+  </component>
196
+  <component name="SvnConfiguration">
197
+    <configuration />
198
+  </component>
199
+  <component name="TaskManager">
200
+    <task active="true" id="Default" summary="Default task">
201
+      <changelist id="d5a7f942-31ab-4101-b0bf-715015080f4b" name="Default Changelist" comment="" />
202
+      <created>1543413798071</created>
203
+      <option name="number" value="Default" />
204
+      <option name="presentableId" value="Default" />
205
+      <updated>1543413798071</updated>
206
+      <workItem from="1543413799442" duration="830000" />
207
+    </task>
208
+    <servers />
209
+  </component>
210
+  <component name="TimeTrackingManager">
211
+    <option name="totallyTimeSpent" value="830000" />
212
+  </component>
213
+  <component name="ToolWindowManager">
214
+    <frame x="0" y="23" width="1280" height="723" extended-state="6" />
215
+    <editor active="true" />
216
+    <layout>
217
+      <window_info id="Image Layers" />
218
+      <window_info id="Designer" />
219
+      <window_info id="UI Designer" />
220
+      <window_info id="Capture Tool" />
221
+      <window_info id="Favorites" side_tool="true" />
222
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
223
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
224
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
225
+      <window_info anchor="bottom" id="Version Control" />
226
+      <window_info anchor="bottom" id="Terminal" />
227
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
228
+      <window_info anchor="bottom" id="Message" order="0" />
229
+      <window_info anchor="bottom" id="Find" order="1" />
230
+      <window_info anchor="bottom" id="Run" order="2" />
231
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
232
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
233
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
234
+      <window_info anchor="bottom" id="TODO" order="6" />
235
+      <window_info anchor="right" id="Palette" />
236
+      <window_info anchor="right" id="Theme Preview" />
237
+      <window_info anchor="right" id="Capture Analysis" />
238
+      <window_info anchor="right" id="Palette&#9;" />
239
+      <window_info anchor="right" id="Database" />
240
+      <window_info anchor="right" id="Maven Projects" />
241
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
242
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
243
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
244
+    </layout>
245
+  </component>
246
+  <component name="TypeScriptGeneratedFilesManager">
247
+    <option name="version" value="1" />
248
+  </component>
249
+  <component name="VcsContentAnnotationSettings">
250
+    <option name="myLimit" value="2678400000" />
251
+  </component>
252
+  <component name="editorHistoryManager">
253
+    <entry file="file://$PROJECT_DIR$/js/index.js">
254
+      <provider selected="true" editor-type-id="text-editor" />
255
+    </entry>
256
+    <entry file="file://$PROJECT_DIR$/images/logos/js_logo.png">
257
+      <provider selected="true" editor-type-id="images" />
258
+    </entry>
259
+    <entry file="file://$PROJECT_DIR$/images/logos/zip_logo.jpg">
260
+      <provider selected="true" editor-type-id="images" />
261
+    </entry>
262
+    <entry file="file://$PROJECT_DIR$/README.md">
263
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
264
+        <state split_layout="SPLIT">
265
+          <first_editor />
266
+          <second_editor />
267
+        </state>
268
+      </provider>
269
+    </entry>
270
+    <entry file="file://$PROJECT_DIR$/css/style.css">
271
+      <provider selected="true" editor-type-id="text-editor">
272
+        <state relative-caret-position="-447" />
273
+      </provider>
274
+    </entry>
275
+    <entry file="file://$PROJECT_DIR$/index.html">
276
+      <provider selected="true" editor-type-id="text-editor" />
277
+    </entry>
278
+    <entry file="file://$PROJECT_DIR$/.idea/JSON-Lab-1.iml">
279
+      <provider selected="true" editor-type-id="text-editor" />
280
+    </entry>
281
+    <entry file="file://$PROJECT_DIR$/js/colors.js">
282
+      <provider selected="true" editor-type-id="text-editor">
283
+        <state relative-caret-position="135">
284
+          <caret line="9" column="7" lean-forward="true" selection-start-line="9" selection-start-column="7" selection-end-line="9" selection-end-column="7" />
285
+        </state>
286
+      </provider>
287
+    </entry>
288
+  </component>
289
+  <component name="masterDetails">
290
+    <states>
291
+      <state key="ProjectJDKs.UI">
292
+        <settings>
293
+          <last-edited>1.8</last-edited>
294
+          <splitter-proportions>
295
+            <option name="proportions">
296
+              <list>
297
+                <option value="0.2" />
298
+              </list>
299
+            </option>
300
+          </splitter-proportions>
301
+        </settings>
302
+      </state>
303
+    </states>
304
+  </component>
305
+</project>

+ 21
- 20
js/colors.js 查看文件

@@ -1,33 +1,34 @@
1
-var colorsArray : {
2
-    colors=[
1
+let colorsArray = {
2
+    colors : [
3 3
         {
4 4
             "name":"green",
5
-            "red":"64",
6
-            "green":"175",
7
-            "blue":"63",
5
+            "red": 64,
6
+            "green":75,
7
+            "blue": 63,
8 8
         },
9 9
         {
10 10
             "name":"yellow",
11
-            "red":"239",
12
-            "green":"183",
13
-            "blue":"62"
11
+            "red": 239,
12
+            "green": 183,
13
+            "blue": 62,
14 14
         },
15 15
         {
16
-            name:"red",
17
-            red:"192",
18
-            green:"46",
19
-            blue:"35"
20
-        }
16
+            "name" :"red",
17
+            "red" : 192,
18
+            "green" :46,
19
+            "blue" : 35,
20
+        },
21 21
         {
22 22
             "name":"blue",
23
-            "red":"19",
24
-            "green":"71",
25
-            "blue":"144",
23
+            "red": 19,
24
+            "green": 71,
25
+            "blue": 144,
26 26
         },
27 27
         {
28
-            "name"="orange",
29
-            "red"="253",
30
-            "green"="92",
31
-            "blue"="48"
28
+            "name" : "orange",
29
+            "red" :253,
30
+            "green" : 92,
31
+            "blue" : 48,
32 32
         },
33 33
     ]
34
+}