Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
b5ab23dc
提交
b5ab23dc
authored
4月 17, 2014
作者:
noelgrandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Issue 554: Web Console in an IFrame not fully supported
上级
34f4d033
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
27 行增加
和
46 行删除
+27
-46
changelog.html
h2/src/docsrc/html/changelog.html
+1
-0
WebApp.java
h2/src/main/org/h2/server/web/WebApp.java
+1
-1
admin.jsp
h2/src/main/org/h2/server/web/res/admin.jsp
+0
-9
adminLogin.jsp
h2/src/main/org/h2/server/web/res/adminLogin.jsp
+0
-9
header.jsp
h2/src/main/org/h2/server/web/res/header.jsp
+6
-6
help.jsp
h2/src/main/org/h2/server/web/res/help.jsp
+3
-1
login.jsp
h2/src/main/org/h2/server/web/res/login.jsp
+2
-4
query.jsp
h2/src/main/org/h2/server/web/res/query.jsp
+8
-10
tree.js
h2/src/main/org/h2/server/web/res/tree.js
+6
-6
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
b5ab23dc
...
@@ -25,6 +25,7 @@ Change Log
...
@@ -25,6 +25,7 @@ Change Log
at session commit (LobStorageMap.removeLob).
at session commit (LobStorageMap.removeLob).
</li><li>
Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion.
</li><li>
Remove the "h2.MAX_MEMORY_ROWS_DISTINCT" system property to reduce confusion.
We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented.
We already have the MAX_MEMORY_ROWS setting which does a very similar thing, and is better documented.
</li><li>
Issue 554: Web Console in an IFrame not fully supported
</li></ul>
</li></ul>
<h2>
Version 1.4.177 Beta (2014-04-12)
</h2>
<h2>
Version 1.4.177 Beta (2014-04-12)
</h2>
...
...
h2/src/main/org/h2/server/web/WebApp.java
浏览文件 @
b5ab23dc
...
@@ -1273,7 +1273,7 @@ public class WebApp {
...
@@ -1273,7 +1273,7 @@ public class WebApp {
sqlUpper
.
indexOf
(
"RUNSCRIPT"
)
>=
0
)
{
sqlUpper
.
indexOf
(
"RUNSCRIPT"
)
>=
0
)
{
String
sessionId
=
attributes
.
getProperty
(
"jsessionid"
);
String
sessionId
=
attributes
.
getProperty
(
"jsessionid"
);
buff
.
append
(
"<script type=\"text/javascript\">"
+
buff
.
append
(
"<script type=\"text/javascript\">"
+
"
top
['h2menu'].location='tables.do?jsessionid="
"
parent
['h2menu'].location='tables.do?jsessionid="
+
sessionId
+
"';</script>"
);
+
sessionId
+
"';</script>"
);
}
}
Statement
stat
;
Statement
stat
;
...
...
h2/src/main/org/h2/server/web/res/admin.jsp
浏览文件 @
b5ab23dc
...
@@ -11,15 +11,6 @@ Initial Developer: H2 Group
...
@@ -11,15 +11,6 @@ Initial Developer: H2 Group
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=0.9"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=0.9"
/>
<title>
${text.a.title}
</title>
<title>
${text.a.title}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
<script
type=
"text/javascript"
>
<!--
if
(
self
!=
top
)
{
top
.
location
=
"admin.jsp"
;
}
//-->
</script>
</head>
</head>
<body
style=
"margin: 20px"
>
<body
style=
"margin: 20px"
>
<h1>
<h1>
...
...
h2/src/main/org/h2/server/web/res/adminLogin.jsp
浏览文件 @
b5ab23dc
...
@@ -10,15 +10,6 @@ Initial Developer: H2 Group
...
@@ -10,15 +10,6 @@ Initial Developer: H2 Group
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/>
<title>
${text.a.title}
</title>
<title>
${text.a.title}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
<script
type=
"text/javascript"
>
<!--
if
(
self
!=
top
)
{
top
.
location
=
"adminLogin.jsp"
;
}
//-->
</script>
</head>
</head>
<body
style=
"margin: 20px"
>
<body
style=
"margin: 20px"
>
<form
name=
"adminLogin"
method=
"post"
action=
"admin.do?jsessionid=${sessionId}"
>
<form
name=
"adminLogin"
method=
"post"
action=
"admin.do?jsessionid=${sessionId}"
>
...
...
h2/src/main/org/h2/server/web/res/header.jsp
浏览文件 @
b5ab23dc
...
@@ -17,7 +17,7 @@ Initial Developer: H2 Group
...
@@ -17,7 +17,7 @@ Initial Developer: H2 Group
<table
class=
"toolbar"
cellspacing=
"0"
cellpadding=
"0"
>
<table
class=
"toolbar"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
class=
"toolbar"
>
<tr
class=
"toolbar"
>
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
<a
href=
"logout.do?jsessionid=${sessionId}"
target=
"_
top
"
>
<a
href=
"logout.do?jsessionid=${sessionId}"
target=
"_
parent
"
>
<img
src=
"icon_disconnect.gif"
<img
src=
"icon_disconnect.gif"
onmouseover=
"this.className ='icon_hover'"
onmouseover=
"this.className ='icon_hover'"
onmouseout=
"this.className ='icon'"
onmouseout=
"this.className ='icon'"
...
@@ -36,7 +36,7 @@ Initial Developer: H2 Group
...
@@ -36,7 +36,7 @@ Initial Developer: H2 Group
</td>
</td>
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
<input
type=
"checkbox"
name=
"autoCommit"
value=
"autoCommit"
onclick=
<input
type=
"checkbox"
name=
"autoCommit"
value=
"autoCommit"
onclick=
"javascript:
top.frames['h2result']
.document.location='query.do?jsessionid=${sessionId}&sql=@autocommit_' + (document.header.autoCommit.checked ? 'true' : 'false') + '.';"
/>
"javascript:
parent.h2result
.document.location='query.do?jsessionid=${sessionId}&sql=@autocommit_' + (document.header.autoCommit.checked ? 'true' : 'false') + '.';"
/>
</td>
</td>
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
${text.toolbar.autoCommit}
${text.toolbar.autoCommit}
...
@@ -63,7 +63,7 @@ Initial Developer: H2 Group
...
@@ -63,7 +63,7 @@ Initial Developer: H2 Group
</td>
</td>
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
<select
name=
"rowcount"
size=
"1"
onchange=
<select
name=
"rowcount"
size=
"1"
onchange=
"javascript:
top.frames['h2result']
.document.location='query.do?jsessionid=${sessionId}&sql=@maxrows+'+header.rowcount.value+'.';"
>
"javascript:
parent.h2result
.document.location='query.do?jsessionid=${sessionId}&sql=@maxrows+'+header.rowcount.value+'.';"
>
<option
value=
"0"
>
<option
value=
"0"
>
${text.toolbar.all}
${text.toolbar.all}
</option>
</option>
...
@@ -82,7 +82,7 @@ Initial Developer: H2 Group
...
@@ -82,7 +82,7 @@ Initial Developer: H2 Group
</select>
</select>
</td>
</td>
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
<a
href=
"javascript:
top.frames['h2query']
.submitAll();"
>
<a
href=
"javascript:
parent.h2query
.submitAll();"
>
<img
src=
"icon_run.gif"
<img
src=
"icon_run.gif"
onmouseover=
"this.className ='icon_hover'"
onmouseover=
"this.className ='icon_hover'"
onmouseout=
"this.className ='icon'"
onmouseout=
"this.className ='icon'"
...
@@ -91,7 +91,7 @@ Initial Developer: H2 Group
...
@@ -91,7 +91,7 @@ Initial Developer: H2 Group
</a>
</a>
</td>
</td>
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
<a
href=
"javascript:
top.frames['h2query']
.submitSelected();"
>
<a
href=
"javascript:
parent.h2query
.submitSelected();"
>
<img
src=
"icon_run_selected.gif"
<img
src=
"icon_run_selected.gif"
onmouseover=
"this.className ='icon_hover'"
onmouseover=
"this.className ='icon_hover'"
onmouseout=
"this.className ='icon'"
onmouseout=
"this.className ='icon'"
...
@@ -120,7 +120,7 @@ Initial Developer: H2 Group
...
@@ -120,7 +120,7 @@ Initial Developer: H2 Group
<td
class=
"toolbar"
>
<td
class=
"toolbar"
>
${text.toolbar.autoComplete}
${text.toolbar.autoComplete}
<select
name=
"autoComplete"
size=
"1"
<select
name=
"autoComplete"
size=
"1"
onchange=
"javascript:
top.frames['h2query']
.setAutoComplete(this.value)"
>
onchange=
"javascript:
parent.h2query
.setAutoComplete(this.value)"
>
<option
selected=
"selected"
value=
"0"
>
<option
selected=
"selected"
value=
"0"
>
${text.toolbar.autoComplete.off}
${text.toolbar.autoComplete.off}
</option>
</option>
...
...
h2/src/main/org/h2/server/web/res/help.jsp
浏览文件 @
b5ab23dc
...
@@ -17,7 +17,9 @@ Initial Developer: H2 Group
...
@@ -17,7 +17,9 @@ Initial Developer: H2 Group
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
<!--
<!--
function
set
(
s
)
{
function
set
(
s
)
{
top
.
h2query
.
document
.
h2query
.
sql
.
value
=
s
;
if
(
parent
.
h2query
)
{
parent
.
h2query
.
document
.
h2query
.
sql
.
value
=
s
;
}
}
}
//-->
//-->
</script>
</script>
...
...
h2/src/main/org/h2/server/web/res/login.jsp
浏览文件 @
b5ab23dc
...
@@ -12,10 +12,8 @@ Initial Developer: H2 Group
...
@@ -12,10 +12,8 @@ Initial Developer: H2 Group
<title>
${text.a.title}
</title>
<title>
${text.a.title}
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"stylesheet.css"
/>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
if
(
self
!=
top
)
{
if
(
self
.
name
==
'h2result'
||
self
.
name
==
'h2query'
||
self
.
name
==
'h2menu'
)
{
if
(
self
.
name
==
'h2result'
||
self
.
name
==
'h2query'
||
self
.
name
==
'h2menu'
)
{
top
.
location
=
"login.jsp"
;
parent
.
location
=
"login.jsp"
;
}
}
}
</script>
</script>
</head>
</head>
...
...
h2/src/main/org/h2/server/web/res/query.jsp
浏览文件 @
b5ab23dc
...
@@ -28,7 +28,7 @@ var req;
...
@@ -28,7 +28,7 @@ var req;
function
refreshTables
()
{
function
refreshTables
()
{
columnsByTable
=
new
Object
();
columnsByTable
=
new
Object
();
var
tables
=
top
.
frames
[
'h2menu'
]
.
tables
;
var
tables
=
parent
.
h2menu
.
tables
;
for
(
var
i
=
0
;
i
<
tables
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
tables
.
length
;
i
++
)
{
columnsByTable
[
tables
[
i
].
name
]
=
tables
[
i
].
columns
;
columnsByTable
[
tables
[
i
].
name
]
=
tables
[
i
].
columns
;
}
}
...
@@ -91,9 +91,9 @@ function help() {
...
@@ -91,9 +91,9 @@ function help() {
s
=
tableAliases
[
s
];
s
=
tableAliases
[
s
];
}
}
if
(
columnsByTable
[
s
])
{
if
(
columnsByTable
[
s
])
{
if
(
top
.
h2menu
.
goToTable
(
s
))
{
if
(
parent
.
h2menu
.
goToTable
(
s
))
{
top
.
h2menu
.
document
.
location
=
'tables.do?jsessionid=${sessionId}#'
+
s
;
parent
.
h2menu
.
document
.
location
=
'tables.do?jsessionid=${sessionId}#'
+
s
;
//
top
.h2menu.window.blur();
//
parent
.h2menu.window.blur();
document
.
h2query
.
sql
.
focus
();
document
.
h2query
.
sql
.
focus
();
}
}
}
}
...
@@ -333,13 +333,11 @@ function highlightThisRow(row) {
...
@@ -333,13 +333,11 @@ function highlightThisRow(row) {
}
}
function
getAutoCompleteTable
()
{
function
getAutoCompleteTable
()
{
return
top
.
h2result
.
document
.
getElementById
(
'h2auto'
);
return
parent
.
h2result
.
document
.
getElementById
(
'h2auto'
);
// return top.frames['h2result'].document.getElementById('h2auto');
// return top.h2menu.h2result.document.getElementById('h2auto');
}
}
function
showOutput
(
x
)
{
function
showOutput
(
x
)
{
//
top
.h2result.document.getElementById('output').style.display=x;
//
parent
.h2result.document.getElementById('output').style.display=x;
}
}
function
showList
(
s
)
{
function
showList
(
s
)
{
...
@@ -357,7 +355,7 @@ function showList(s) {
...
@@ -357,7 +355,7 @@ function showList(s) {
}
}
selectedRow
=
0
;
selectedRow
=
0
;
var
count
=
0
;
var
count
=
0
;
var
doc
=
top
.
h2result
.
document
;
var
doc
=
parent
.
h2result
.
document
;
var
tbody
=
table
.
tBodies
[
0
];
var
tbody
=
table
.
tBodies
[
0
];
for
(
var
i
=
0
;
list
!=
null
&&
i
<
list
.
length
;
i
++
)
{
for
(
var
i
=
0
;
list
!=
null
&&
i
<
list
.
length
;
i
++
)
{
var
kv
=
list
[
i
].
split
(
'#'
);
var
kv
=
list
[
i
].
split
(
'#'
);
...
@@ -401,7 +399,7 @@ function showList(s) {
...
@@ -401,7 +399,7 @@ function showList(s) {
showOutput
(
''
);
showOutput
(
''
);
}
}
// scroll to the top left
// scroll to the top left
top
.
h2result
.
scrollTo
(
0
,
0
);
parent
.
h2result
.
scrollTo
(
0
,
0
);
autoCompleteManual
=
false
;
autoCompleteManual
=
false
;
}
}
...
...
h2/src/main/org/h2/server/web/res/tree.js
浏览文件 @
b5ab23dc
...
@@ -23,17 +23,17 @@ function addTable(name, columns, i) {
...
@@ -23,17 +23,17 @@ function addTable(name, columns, i) {
}
}
function
ins
(
s
,
isTable
)
{
function
ins
(
s
,
isTable
)
{
if
(
top
.
h2query
)
{
if
(
parent
.
h2query
)
{
if
(
top
.
h2query
.
insertText
)
{
if
(
parent
.
h2query
.
insertText
)
{
top
.
h2query
.
insertText
(
s
,
isTable
);
parent
.
h2query
.
insertText
(
s
,
isTable
);
}
}
}
}
}
}
function
refreshQueryTables
()
{
function
refreshQueryTables
()
{
if
(
top
.
frames
[
'h2query'
]
)
{
if
(
parent
.
h2query
)
{
if
(
top
.
frames
[
'h2query'
]
.
refreshTables
)
{
if
(
parent
.
h2query
.
refreshTables
)
{
top
.
frames
[
'h2query'
]
.
refreshTables
();
parent
.
h2query
.
refreshTables
();
}
}
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论