Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MidTerm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9731301
MidTerm
Commits
a23a0a5d
Commit
a23a0a5d
authored
May 03, 2020
by
9731301
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add center feature
parent
8add75eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
38 deletions
+102
-38
workspace.xml
.idea/workspace.xml
+32
-12
InsomniaGUI.class
out/production/Insomnia/InsomniaGUI.class
+0
-0
InsomniaGUI.java
src/InsomniaGUI.java
+70
-26
No files found.
.idea/workspace.xml
View file @
a23a0a5d
...
...
@@ -2,8 +2,8 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f2dd20fb-7e97-49ef-9dfe-5631626d7912"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/.idea/vcs.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/out/production/Insomnia/InsomniaGUI.class"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/out/production/Insomnia/InsomniaGUI.class"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/InsomniaGUI.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/InsomniaGUI.java"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -11,6 +11,20 @@
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
<component
name=
"DatabaseView"
>
<option
name=
"SHOW_INTERMEDIATE"
value=
"true"
/>
<option
name=
"GROUP_DATA_SOURCES"
value=
"true"
/>
<option
name=
"GROUP_SCHEMA"
value=
"true"
/>
<option
name=
"GROUP_CONTENTS"
value=
"false"
/>
<option
name=
"SORT_POSITIONED"
value=
"false"
/>
<option
name=
"SHOW_EMPTY_GROUPS"
value=
"false"
/>
<option
name=
"AUTO_SCROLL_FROM_SOURCE"
value=
"false"
/>
<option
name=
"HIDDEN_KINDS"
>
<set
/>
</option>
<expand
/>
<select
/>
</component>
<component
name=
"FileTemplateManagerImpl"
>
<option
name=
"RECENT_TEMPLATES"
>
<list>
...
...
@@ -58,7 +72,9 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1588330863345
</updated>
<workItem
from=
"1588330867580"
duration=
"8005000"
/>
<workItem
from=
"1588425228961"
duration=
"7926000"
/>
<workItem
from=
"1588425228961"
duration=
"8554000"
/>
<workItem
from=
"1588437622203"
duration=
"6269000"
/>
<workItem
from=
"1588522915548"
duration=
"9323000"
/>
</task>
<servers
/>
</component>
...
...
@@ -66,26 +82,30 @@
<option
name=
"version"
value=
"1"
/>
</component>
<component
name=
"WindowStateProjectService"
>
<state
width=
"781"
height=
"81"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1588433110531"
>
<state
x=
"309"
y=
"122"
key=
"#com.intellij.ide.util.MemberChooser"
timestamp=
"1588443249650"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
x=
"309"
y=
"122"
key=
"#com.intellij.ide.util.MemberChooser/0.0.1536.824@0.0.1536.824"
timestamp=
"1588443249650"
/>
<state
width=
"799"
height=
"75"
key=
"GridCell.Tab.0.bottom"
timestamp=
"1588535347969"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824"
timestamp=
"1588433110531
"
/>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.center"
timestamp=
"1588433110531
"
>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.bottom/0.0.1536.824@0.0.1536.824"
timestamp=
"1588535347969
"
/>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.center"
timestamp=
"1588535347968
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824"
timestamp=
"1588433110531
"
/>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.left"
timestamp=
"1588433110531
"
>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.center/0.0.1536.824@0.0.1536.824"
timestamp=
"1588535347968
"
/>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.left"
timestamp=
"1588535347968
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824"
timestamp=
"1588433110531
"
/>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.right"
timestamp=
"1588433110531
"
>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.left/0.0.1536.824@0.0.1536.824"
timestamp=
"1588535347968
"
/>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.right"
timestamp=
"1588535347969
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
width=
"7
81"
height=
"81"
key=
"GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824"
timestamp=
"1588433110531
"
/>
<state
x=
"425"
y=
"237"
key=
"com.intellij.ide.util.TipDialog"
timestamp=
"1588
330868442
"
>
<state
width=
"7
99"
height=
"75"
key=
"GridCell.Tab.0.right/0.0.1536.824@0.0.1536.824"
timestamp=
"1588535347969
"
/>
<state
x=
"425"
y=
"237"
key=
"com.intellij.ide.util.TipDialog"
timestamp=
"1588
522979439
"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
<state
x=
"425"
y=
"237"
key=
"com.intellij.ide.util.TipDialog/0.0.1536.824@0.0.1536.824"
timestamp=
"1588
330868442
"
/>
<state
x=
"425"
y=
"237"
key=
"com.intellij.ide.util.TipDialog/0.0.1536.824@0.0.1536.824"
timestamp=
"1588
522979439
"
/>
<state
x=
"46"
y=
"145"
width=
"672"
height=
"678"
key=
"search.everywhere.popup"
timestamp=
"1588333540387"
>
<screen
x=
"0"
y=
"0"
width=
"1536"
height=
"824"
/>
</state>
...
...
out/production/Insomnia/InsomniaGUI.class
View file @
a23a0a5d
No preview for this file type
src/InsomniaGUI.java
View file @
a23a0a5d
...
...
@@ -34,32 +34,37 @@ public class InsomniaGUI {
auth
.
setBackground
(
Color
.
GRAY
);
JPanel
query
=
new
JPanel
();
query
.
setBackground
(
Color
.
GRAY
);
JPanel
header
=
new
JPanel
();
JPanel
header
=
new
JPanel
(
new
BorderLayout
()
);
header
.
setBackground
(
Color
.
GRAY
);
JPanel
docs
=
new
JPanel
();
docs
.
setBackground
(
Color
.
GRAY
);
//center_center
JTabbedPane
tabbedPaneCenter
=
new
JTabbedPane
();
tabbedPaneCenter
.
setBackground
(
Color
.
GRAY
);
tabbedPaneCenter
.
add
(
"Body"
,
body
);
tabbedPaneCenter
.
add
(
"Auth"
,
auth
);
tabbedPaneCenter
.
add
(
"Query"
,
query
);
tabbedPaneCenter
.
add
(
"Header"
,
header
);
tabbedPaneCenter
.
add
(
"Docs"
,
docs
);
//center_up
JMenuItem
patch
=
new
JMenuItem
();
JMenuItem
put
=
new
JMenuItem
();
JMenuItem
post
=
new
JMenuItem
();
JMenuItem
delete
=
new
JMenuItem
();
JMenuItem
get
=
new
JMenuItem
();
JMenu
centerMenu
=
new
JMenu
(
"Menu"
);
centerMenu
.
add
(
"Patch"
,
patch
);
centerMenu
.
add
(
"Put"
,
put
);
centerMenu
.
add
(
"Post"
,
post
);
centerMenu
.
add
(
"Delete"
,
delete
);
centerMenu
.
add
(
"Get"
,
get
);
//request-center
JTabbedPane
tabbedPaneCenterRequest
=
new
JTabbedPane
();
tabbedPaneCenterRequest
.
setBackground
(
Color
.
GRAY
);
tabbedPaneCenterRequest
.
add
(
"Body"
,
body
);
tabbedPaneCenterRequest
.
add
(
"Auth"
,
auth
);
tabbedPaneCenterRequest
.
add
(
"Query"
,
query
);
tabbedPaneCenterRequest
.
add
(
"Header"
,
header
);
tabbedPaneCenterRequest
.
add
(
"Docs"
,
docs
);
JTextField
headerField
=
new
JTextField
(
"header"
);
headerField
.
setBorder
(
border
);
JTextField
valueField
=
new
JTextField
(
"value"
);
valueField
.
setBorder
(
border
);
JCheckBox
checkBox
=
new
JCheckBox
();
JButton
delete
=
new
JButton
();
JPanel
center_header
=
new
JPanel
(
new
GridLayout
(
1
,
2
));
center_header
.
add
(
headerField
);
center_header
.
add
(
valueField
);
header
.
add
(
checkBox
,
BorderLayout
.
EAST
);
header
.
add
(
center_header
,
BorderLayout
.
CENTER
);
header
.
add
(
delete
,
BorderLayout
.
WEST
);
//request_up
String
s
[]={
"Patch"
,
"Put"
,
"Post"
,
"Delete"
,
"Get"
};
JComboBox
centerMenu
=
new
JComboBox
(
s
);
centerMenu
.
setFont
(
new
Font
(
"Arial"
,
20
,
15
));
JTextField
URLTextField
=
new
JTextField
(
"http://api.myproduct.com/v1/users"
);
...
...
@@ -71,12 +76,51 @@ public class InsomniaGUI {
centerUp
.
add
(
URLTextField
,
BorderLayout
.
CENTER
);
centerUp
.
add
(
sendButton
,
BorderLayout
.
EAST
);
JPanel
center
=
new
JPanel
(
new
BorderLayout
());
center
.
add
(
centerUp
,
BorderLayout
.
NORTH
);
center
.
add
(
tabbedPaneCenter
,
BorderLayout
.
CENTER
);
JPanel
request
=
new
JPanel
(
new
BorderLayout
());
request
.
add
(
centerUp
,
BorderLayout
.
NORTH
);
request
.
add
(
tabbedPaneCenterRequest
,
BorderLayout
.
CENTER
);
//respond
JPanel
row
=
new
JPanel
();
row
.
setBackground
(
Color
.
GRAY
);
JPanel
header2
=
new
JPanel
();
header2
.
setBackground
(
Color
.
GRAY
);
JPanel
cookie
=
new
JPanel
();
cookie
.
setBackground
(
Color
.
GRAY
);
JPanel
timeline
=
new
JPanel
(
new
BorderLayout
());
timeline
.
setBackground
(
Color
.
GRAY
);
JTabbedPane
tabbedPaneCenterResponse
=
new
JTabbedPane
();
tabbedPaneCenterResponse
.
setBackground
(
Color
.
GRAY
);
tabbedPaneCenterResponse
.
add
(
"Row"
,
row
);
tabbedPaneCenterResponse
.
add
(
"Header"
,
header2
);
tabbedPaneCenterResponse
.
add
(
"Cookie"
,
cookie
);
tabbedPaneCenterResponse
.
add
(
"Timeline"
,
timeline
);
JPanel
response
=
new
JPanel
(
new
BorderLayout
());
JTextField
headerField2
=
new
JTextField
(
"header"
);
JTextField
valueField2
=
new
JTextField
(
"value"
);
JPanel
center_header2
=
new
JPanel
(
new
GridLayout
(
1
,
2
));
center_header2
.
add
(
headerField2
);
center_header2
.
add
(
valueField2
);
header2
.
add
(
center_header2
);
JPanel
up_response
=
new
JPanel
();
JLabel
label1
=
new
JLabel
(
"ok"
);
label1
.
setBorder
(
border
);
JLabel
label2
=
new
JLabel
(
"s"
);
label2
.
setBorder
(
border
);
JLabel
label3
=
new
JLabel
(
"KB"
);
label3
.
setBorder
(
border
);
up_response
.
add
(
label1
);
up_response
.
add
(
label2
);
up_response
.
add
(
label3
);
response
.
add
(
tabbedPaneCenterResponse
,
BorderLayout
.
CENTER
);
response
.
add
(
up_response
,
BorderLayout
.
NORTH
);
JPanel
panelRight
=
new
JPanel
(
new
GridLayout
(
1
,
2
));
panelRight
.
add
(
center
);
panelRight
.
add
(
request
);
panelRight
.
add
(
response
);
JMenu
menu
=
new
JMenu
(
"Insomnia"
);
menu
.
setFont
(
new
Font
(
"Arial"
,
20
,
15
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment