Arin Turpin преди 6 години
родител
ревизия
37e754843d

+ 13
- 0
ZipCoinRedJavaServer/.idea/compiler.xml Целия файл

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="ZipCoin-RED" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 6
- 0
ZipCoinRedJavaServer/.idea/encodings.xml Целия файл

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding">
4
+    <file url="file://$PROJECT_DIR$" charset="UTF-8" />
5
+  </component>
6
+</project>

+ 199
- 0
ZipCoinRedJavaServer/.idea/workspace.xml Целия файл

@@ -1,16 +1,145 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="0142cf83-c97a-4389-9211-4113dcc9aea5" name="Default" comment="" />
5
+    <ignored path="$PROJECT_DIR$/target/" />
6
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
+    <option name="TRACKING_ENABLED" 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="FileEditorManager">
14
+    <leaf>
15
+      <file leaf-file-name="Miner.java" pinned="false" current-in-tab="false">
16
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
17
+          <provider selected="true" editor-type-id="text-editor">
18
+            <state relative-caret-position="345">
19
+              <caret line="23" column="16" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
20
+            </state>
21
+          </provider>
22
+        </entry>
23
+      </file>
24
+      <file leaf-file-name="BlockLoader.java" pinned="false" current-in-tab="true">
25
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
26
+          <provider selected="true" editor-type-id="text-editor">
27
+            <state relative-caret-position="382">
28
+              <caret line="33" column="33" selection-start-line="33" selection-start-column="33" selection-end-line="33" selection-end-column="33" />
29
+              <folding>
30
+                <element signature="imports" expanded="true" />
31
+              </folding>
32
+            </state>
33
+          </provider>
34
+        </entry>
35
+      </file>
36
+      <file leaf-file-name="Block.java" pinned="false" current-in-tab="false">
37
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
38
+          <provider selected="true" editor-type-id="text-editor">
39
+            <state relative-caret-position="75">
40
+              <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
41
+            </state>
42
+          </provider>
43
+        </entry>
44
+      </file>
45
+    </leaf>
46
+  </component>
47
+  <component name="IdeDocumentHistory">
48
+    <option name="CHANGED_PATHS">
49
+      <list>
50
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java" />
51
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java" />
52
+      </list>
53
+    </option>
54
+  </component>
3 55
   <component name="ProjectFrameBounds">
4 56
     <option name="y" value="22" />
5 57
     <option name="width" value="1280" />
6 58
     <option name="height" value="691" />
7 59
   </component>
60
+  <component name="ProjectView">
61
+    <navigator proportions="" version="1">
62
+      <foldersAlwaysOnTop value="true" />
63
+    </navigator>
64
+    <panes>
65
+      <pane id="AndroidView" />
66
+      <pane id="PackagesPane" />
67
+      <pane id="ProjectPane">
68
+        <subPane>
69
+          <expand>
70
+            <path>
71
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
72
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
73
+            </path>
74
+            <path>
75
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
76
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
77
+              <item name="src" type="462c0819:PsiDirectoryNode" />
78
+            </path>
79
+            <path>
80
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
81
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
82
+              <item name="src" type="462c0819:PsiDirectoryNode" />
83
+              <item name="main" type="462c0819:PsiDirectoryNode" />
84
+            </path>
85
+            <path>
86
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
87
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
88
+              <item name="src" type="462c0819:PsiDirectoryNode" />
89
+              <item name="main" type="462c0819:PsiDirectoryNode" />
90
+              <item name="java" type="462c0819:PsiDirectoryNode" />
91
+            </path>
92
+            <path>
93
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
94
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
95
+              <item name="src" type="462c0819:PsiDirectoryNode" />
96
+              <item name="main" type="462c0819:PsiDirectoryNode" />
97
+              <item name="java" type="462c0819:PsiDirectoryNode" />
98
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
99
+            </path>
100
+            <path>
101
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
102
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
103
+              <item name="src" type="462c0819:PsiDirectoryNode" />
104
+              <item name="main" type="462c0819:PsiDirectoryNode" />
105
+              <item name="java" type="462c0819:PsiDirectoryNode" />
106
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
107
+              <item name="config" type="462c0819:PsiDirectoryNode" />
108
+            </path>
109
+            <path>
110
+              <item name="ZipCoin-RED" type="b2602c69:ProjectViewProjectNode" />
111
+              <item name="ZipCoinRedJavaServer" type="462c0819:PsiDirectoryNode" />
112
+              <item name="src" type="462c0819:PsiDirectoryNode" />
113
+              <item name="main" type="462c0819:PsiDirectoryNode" />
114
+              <item name="java" type="462c0819:PsiDirectoryNode" />
115
+              <item name="zipcoin" type="462c0819:PsiDirectoryNode" />
116
+              <item name="model" type="462c0819:PsiDirectoryNode" />
117
+            </path>
118
+          </expand>
119
+          <select />
120
+        </subPane>
121
+      </pane>
122
+      <pane id="Scope" />
123
+    </panes>
124
+  </component>
8 125
   <component name="PropertiesComponent">
9 126
     <property name="project.structure.last.edited" value="Global Libraries" />
10 127
     <property name="project.structure.proportion" value="0.15" />
11 128
     <property name="project.structure.side.proportion" value="0.33547795" />
12 129
     <property name="settings.editor.selected.configurable" value="editor.preferences.import" />
13 130
   </component>
131
+  <component name="RunDashboard">
132
+    <option name="ruleStates">
133
+      <list>
134
+        <RuleState>
135
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
136
+        </RuleState>
137
+        <RuleState>
138
+          <option name="name" value="StatusDashboardGroupingRule" />
139
+        </RuleState>
140
+      </list>
141
+    </option>
142
+  </component>
14 143
   <component name="RunManager">
15 144
     <configuration default="true" type="Application" factoryName="Application">
16 145
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
@@ -54,9 +183,79 @@
54 183
       <listeners />
55 184
     </configuration>
56 185
   </component>
186
+  <component name="SvnConfiguration">
187
+    <configuration />
188
+  </component>
189
+  <component name="TaskManager">
190
+    <task active="true" id="Default" summary="Default task">
191
+      <changelist id="0142cf83-c97a-4389-9211-4113dcc9aea5" name="Default" comment="" />
192
+      <created>1532706486704</created>
193
+      <option name="number" value="Default" />
194
+      <option name="presentableId" value="Default" />
195
+      <updated>1532706486704</updated>
196
+    </task>
197
+    <servers />
198
+  </component>
199
+  <component name="ToolWindowManager">
200
+    <frame x="0" y="22" width="1280" height="691" extended-state="0" />
201
+    <editor active="true" />
202
+    <layout>
203
+      <window_info anchor="right" id="Palette" />
204
+      <window_info anchor="bottom" id="TODO" order="6" />
205
+      <window_info anchor="right" id="Palette&#9;" />
206
+      <window_info id="Image Layers" />
207
+      <window_info anchor="right" id="Capture Analysis" />
208
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
209
+      <window_info anchor="right" id="Maven Projects" />
210
+      <window_info anchor="bottom" id="Run" order="2" />
211
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
212
+      <window_info anchor="bottom" id="Terminal" weight="0.25084174" />
213
+      <window_info id="Capture Tool" />
214
+      <window_info id="Designer" />
215
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
216
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
217
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
218
+      <window_info id="UI Designer" />
219
+      <window_info anchor="right" id="Theme Preview" />
220
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
221
+      <window_info id="Favorites" side_tool="true" />
222
+      <window_info anchor="bottom" id="Find" order="1" />
223
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
224
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
225
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
226
+      <window_info anchor="bottom" id="Message" order="0" />
227
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
228
+    </layout>
229
+  </component>
57 230
   <component name="VcsContentAnnotationSettings">
58 231
     <option name="myLimit" value="2678400000" />
59 232
   </component>
233
+  <component name="editorHistoryManager">
234
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/utilities/Miner.java">
235
+      <provider selected="true" editor-type-id="text-editor">
236
+        <state relative-caret-position="345">
237
+          <caret line="23" column="16" selection-start-line="23" selection-start-column="16" selection-end-line="23" selection-end-column="16" />
238
+        </state>
239
+      </provider>
240
+    </entry>
241
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/model/Block.java">
242
+      <provider selected="true" editor-type-id="text-editor">
243
+        <state relative-caret-position="75">
244
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
245
+        </state>
246
+      </provider>
247
+    </entry>
248
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcoin/config/BlockLoader.java">
249
+      <provider selected="true" editor-type-id="text-editor">
250
+        <state relative-caret-position="382">
251
+          <caret line="33" column="33" selection-start-line="33" selection-start-column="33" selection-end-line="33" selection-end-column="33" />
252
+          <folding>
253
+            <element signature="imports" expanded="true" />
254
+          </folding>
255
+        </state>
256
+      </provider>
257
+    </entry>
258
+  </component>
60 259
   <component name="masterDetails">
61 260
     <states>
62 261
       <state key="GlobalLibrariesConfigurable.UI">

+ 34
- 1
ZipCoinRedJavaServer/src/main/java/com/zipcoin/config/BlockLoader.java Целия файл

@@ -1,4 +1,37 @@
1 1
 package com.zipcoin.config;
2 2
 
3
-public class BlockLoader {
3
+import com.zipcoin.model.Block;
4
+import com.zipcoin.repository.BlockRepository;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.boot.ApplicationArguments;
7
+import org.springframework.boot.ApplicationRunner;
8
+import org.springframework.stereotype.Component;
9
+
10
+    @Component
11
+    public class BlockLoader implements ApplicationRunner {
12
+        private BlockRepository block;
13
+
14
+        @Autowired
15
+        public BlockLoader(BlockRepository block) {
16
+            this.block = block;
17
+        }
18
+
19
+
20
+
21
+        public void run(ApplicationArguments args) {
22
+
23
+            Block[] blocks = new Block[]{
24
+                    new Block(0, "0000aboivsnd9878"),
25
+                    new Block(867, "SuperCrew"),
26
+                    new Block(459, "LoA Team"),
27
+                    new Block(123, "HF Team"),
28
+                    new Block(55555, "Ω≈≈≈≈"),
29
+                    new Block(97, "˙˙˙˙˙˙˙"),
30
+            };
31
+
32
+            for (Block x : blocks)
33
+                this.block.save(x);
34
+
35
+        }
36
+    }
4 37
 }