+=begin
+ admin_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class AdminController < ApplicationController
before_filter :check_login_status, :check_admin_group
+=begin
+ admin_distribution_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class AdminDistributionController < ApplicationController
before_filter :check_login_status, :check_admin_group
+=begin
+ admin_group_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class AdminGroupController < ApplicationController
before_filter :check_login_status, :check_admin_group
+=begin
+ admin_project_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class AdminProjectController < ApplicationController
def queryAllProject
project_list = Project.all(:order => "name")
FROM projects
, distributions
WHERE distributions.name = \"#{dist_name}\"
- AND distributions.id = projects.distribution_id ")
+ AND distributions.id = projects.distribution_id
+ ORDER BY projects.name")
if not project_list.nil?
project_list.each do |project|
doc.Project {
+=begin
+ admin_server_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class AdminServerController < ApplicationController
def queryAllServer
# get full distribution list
+=begin
+ admin_user_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class AdminUserController < ApplicationController
before_filter :check_login_status, :check_admin_group
def queryAllUser
- user_list = User.all
+ user_list = User.all(:order => "name")
doc = Builder::XmlMarkup.new( :target => out_string = "", :indent => 2 )
doc.Response {
+=begin
+ application_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class ApplicationController < ActionController::Base
#protect_from_forgery
+=begin
+ jobs_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class JobsController < ApplicationController
before_filter :check_login_status
+=begin
+ projects_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
require 'json'
class ProjectsController < ApplicationController
+=begin
+ sessions_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class SessionsController < ApplicationController
def new
end
+=begin
+ users_controller.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
class UsersController < ApplicationController
def new
+=begin
+ utils.rb
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+=end
+
# constant
BUILD_SERVER_ADDRESS = "127.0.0.1"
timeout:
development:
- adapter: mysql2
- encoding: utf8
+ adapter:
+ encoding:
host:
- port:
- database:
- username:
- password:
- pool: 5
- timeout: 5000
+ port:
+ database:
+ username:
+ password:
+ pool:
+ timeout:
+<!--
+ index.html
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+-->
+
<!DOCTYPE html>
<html>
<head>
+/*
+ admin-distribution-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminDistributionAdd() {
var changeInfoList = [];
var changeInfoItem;
+/*
+ admin-distribution-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminDistributionModifyPopupInit() {
var distName = $("#adminDistributionSelect option:selected").val();
var packageServerUrl = document.getElementById("adminDistribution:packageServerUrl").innerHTML;
+/*
+ admin-distribution.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminDistributionInit() {
queryAllDistribution( function (xml) {
var oldDistName = $("#adminDistributionSelect option:selected").val();
+/*
+ admin-group-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminGroupAddInit() {
document.getElementById('adminGroupAddPopup-Name').value = "";
document.getElementById('adminGroupAddPopup-Description').value = "";
+/*
+ admin-group-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminGroupModifyInit() {
var index = localStorage.groupTableIndex;
var groupName = document.getElementById("groupTableName:"+index).innerHTML;
+/*
+ admin-group.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminGroupInit() {
adminGroupInitTable();
+/*
+ admin-project-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminProjectAddGitInit() {
document.getElementById("popup:addGitProjectName").value = "";
document.getElementById("popup:addGitProjectPassword").value = "";
+/*
+ admin-project-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminProjectModifyBinaryProjectInit() {
var projectName = localStorage.projectName;
var packageName = document.getElementById('modifyBinaryPackageName:'+projectName).innerHTML;
+/*
+ admin-project.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminProjectInit() {
queryAllDistribution( function (xml) {
var oldDistName = $("#adminProjectDistributionSelect option:selected").val();
+/*
+ admin-server-add.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminServerAddSupportedOsInit() {
// Remove select option
$('#adminServer-AddSupportedOs-OsCategory').empty();
+/*
+ admin-server-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminServerModifyRemoteBuildServerInit() {
var serverAddress = localStorage.remoteBuildServerAddress;
var serverDescription = localStorage.remoteBuildServerDescription;
return;
}
- changeInfoItem = {"Type":"ModifyServer", "Address":serverAddress, "NewAddress":newServerAddress, "Description":description};
+ changeInfoItem = {"Address":serverAddress, "NewAddress":newServerAddress, "Description":description};
changeInfoList.push(changeInfoItem);
modifyRemoteBuildServer(changeInfoList, function () {
+/*
+ admin-server-remove.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminServerRemoveOSCategoryInit() {
// Remove select option
$('#adminServer-RemoveOSCategory-CategorySelect').empty();
});
}
+function adminServerRemoveRemoteBuildServer() {
+ var changeInfoList = [];
+ var changeInfoItem;
+ var serverAddress = document.getElementById('adminServer-modifyRemoteBuildServer-OldAddress').value;
+
+ if(serverAddress == ""){
+ alert("server address is invalid");
+ return;
+ }
+
+ changeInfoItem = {"Address":serverAddress};
+ changeInfoList.push(changeInfoItem);
+
+ removeRemoteBuildServer(changeInfoList, function () {
+ $.mobile.changePage("#adminServer");
+ });
+}
+
+/*
+ admin-server.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminServerInit() {
$('#adminServer-RemoteBuildServer').collapsible();
+/*
+ admin-user-modify.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminUserModifyPopupInit() {
var index = localStorage.userTableIndex;
var userName = document.getElementById("userTableName:"+index).innerHTML;
+/*
+ admin-user.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function adminUserInit() {
var userTable = document.getElementById("adminUserTable");
+/*
+ build.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function buildInit() {
if( $("#select-distribution").children().length == 0 ) {
queryDistribution( function(xml) {
if (project_type == "GIT") {
var cell = document.getElementById("buildGitProjectTable"+":"+project_name+':'+project_os);
- cell.setAttribute('bgcolor', '#fbff00');
+
+ if(cell){
+ cell.setAttribute('bgcolor', '#fbff00');
+ }
}
});
});
}, false);
}
+function buildClear() {
+ $("#select-distribution").empty();
+
+ buildInitTable();
+}
+/*
+ dibs-api.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
// controller: Users
function signUp(infoList, successFunction) {
- var url = '/users/signup';
+ var url = 'users/signup';
postForServer(url, infoList, successFunction);
}
function queryUserInfo(successFunction) {
- var url = '/users/query';
+ var url = 'users/query';
getInfoFromServer(url, successFunction);
}
function modifyUserInfo(changeInfoList, successFunction) {
- var url = '/users/modify';
+ var url = 'users/modify';
postForServer(url, changeInfoList, successFunction);
}
// controller: Sessions
function login(infoList, successFunction) {
- var url = '/sessions/login';
+ var url = 'sessions/login';
postForServer(url, infoList, successFunction);
}
+function logout() {
+ var url = 'sessions/logout';
+ deleteForServer(url, function() {
+ expireSession();
+ dibsWebClear();
+ });
+}
+
// controller: projects
function queryDistribution(successFunction) {
- var url = '/projects/queryDistribution';
+ var url = 'projects/queryDistribution';
getInfoFromServer(url, successFunction);
}
// controller : projects
function buildProject(changeInfoList, successFunction) {
- var url = '/projects/buildProject';
+ var url = 'projects/buildProject';
postForServer(url, changeInfoList, successFunction);
}
function queryProjectsInDistribution(distName, successFunction) {
- var url = '/projects/queryProjectsInDistribution/' + distName;
+ var url = 'projects/queryProjectsInDistribution/' + distName;
getInfoFromServer(url, successFunction);
}
function queryRunningProjectsInfoInDistribution(distName, successFunction) {
- var url = '/projects/queryRunningProjectsInfoInDistribution/' + distName;
+ var url = 'projects/queryRunningProjectsInfoInDistribution/' + distName;
getInfoFromServer(url, successFunction);
}
function queryProjectsInfoInDistribution(distName, successFunction) {
- var url = '/projects/queryProjectsInfoInDistribution/' + distName;
+ var url = 'projects/queryProjectsInfoInDistribution/' + distName;
getInfoFromServer(url, successFunction);
}
// controller : admin_group
function queryAllGroup(successFunction) {
- var url = '/admin_group/queryAllGroup';
+ var url = 'admin_group/queryAllGroup';
getInfoFromServer(url, successFunction);
}
function queryGroupInfo(groupName, successFunction) {
- var url = '/admin_group/queryGroupInfo/' + groupName;
+ var url = 'admin_group/queryGroupInfo/' + groupName;
getInfoFromServer(url, successFunction);
}
function addGroup(changeInfoList, successFunction) {
- var url = '/admin_group/addGroup';
+ var url = 'admin_group/addGroup';
postForServer(url, changeInfoList, successFunction);
}
function removeGroup(changeInfoList, successFunction) {
- var url = '/admin_group/removeGroup';
+ var url = 'admin_group/removeGroup';
postForServer(url, changeInfoList, successFunction);
}
function changeGroup(changeInfoList, successFunction) {
- var url = '/admin_group/modifyGroup';
+ var url = 'admin_group/modifyGroup';
postForServer(url, changeInfoList, successFunction);
}
// controller : admin_user
function queryAllUser(successFunction) {
- var url = '/admin_user/queryAllUser';
+ var url = 'admin_user/queryAllUser';
getInfoFromServer(url, successFunction);
}
function changeUser(changeInfoList, successFunction) {
- var url = '/admin_user/modifyUser';
+ var url = 'admin_user/modifyUser';
postForServer(url, changeInfoList, successFunction);
}
function removeUser(changeInfoList, successFunction) {
- var url = '/admin_user/removeUser';
+ var url = 'admin_user/removeUser';
postForServer(url, changeInfoList, successFunction);
}
// controller : admin_server
function queryServerInfo(successFunction) {
- var url = '/admin_server/queryServerInfo';
+ var url = 'admin_server/queryServerInfo';
getInfoFromServer(url, successFunction);
}
function queryAllServer(successFunction) {
- var url = '/admin_server/queryAllServer';
+ var url = 'admin_server/queryAllServer';
getInfoFromServer(url, successFunction);
}
function addRemoteBuildServer(changeInfoList, successFunction) {
- var url = '/admin_server/addRemoteBuildServer';
+ var url = 'admin_server/addRemoteBuildServer';
postForServer(url, changeInfoList, successFunction);
}
function removeRemoteBuildServer(changeInfoList, successFunction) {
- var url = '/admin_server/removeRemoteBuildServer';
+ var url = 'admin_server/removeRemoteBuildServer';
postForServer(url, changeInfoList, successFunction);
}
function modifyRemoteBuildServer(changeInfoList, successFunction) {
- var url = '/admin_server/modifyRemoteBuildServer';
+ var url = 'admin_server/modifyRemoteBuildServer';
postForServer(url, changeInfoList, successFunction);
}
function addOSCategory(changeInfoList, successFunction) {
- var url = '/admin_server/addOsCategory';
+ var url = 'admin_server/addOsCategory';
postForServer(url, changeInfoList, successFunction);
}
function removeOSCategory(changeInfoList, successFunction) {
- var url = '/admin_server/removeOsCategory';
+ var url = 'admin_server/removeOsCategory';
postForServer(url, changeInfoList, successFunction);
}
function modifyOSCategory(changeInfoList, successFunction) {
- var url = '/admin_server/modifyOsCategory';
+ var url = 'admin_server/modifyOsCategory';
postForServer(url, changeInfoList, successFunction);
}
function addSupportedOS(changeInfoList, successFunction) {
- var url = '/admin_server/addSupportedOS';
+ var url = 'admin_server/addSupportedOS';
postForServer(url, changeInfoList, successFunction);
}
function removeSupportedOS(changeInfoList, successFunction) {
- var url = '/admin_server/removeSupportedOS';
+ var url = 'admin_server/removeSupportedOS';
postForServer(url, changeInfoList, successFunction);
}
function modifySupportedOS(changeInfoList, successFunction) {
- var url = '/admin_server/modifySupportedOS';
+ var url = 'admin_server/modifySupportedOS';
postForServer(url, changeInfoList, successFunction);
}
function addServerInfo(changeInfoList, successFunction) {
- var url = '/admin_server/addServerInfo';
+ var url = 'admin_server/addServerInfo';
postForServer(url, changeInfoList, successFunction);
}
function removeServerInfo(changeInfoList, successFunction) {
- var url = '/admin_server/removeServerInfo';
+ var url = 'admin_server/removeServerInfo';
postForServer(url, changeInfoList, successFunction);
}
function modifyServerInfo(changeInfoList, successFunction) {
- var url = '/admin_server/modifyServerInfo';
+ var url = 'admin_server/modifyServerInfo';
postForServer(url, changeInfoList, successFunction);
}
// controller : admin_project
function queryAllProject(successFunction) {
- var url = '/admin_project/queryAllProject';
+ var url = 'admin_project/queryAllProject';
getInfoFromServer(url, successFunction);
}
function queryProjectsInDistributionForAdmin(distName, successFunction) {
- var url = '/admin_project/queryProjectsInDistributionForAdmin/' + distName;
+ var url = 'admin_project/queryProjectsInDistributionForAdmin/' + distName;
getInfoFromServer(url, successFunction);
}
function addProject(changeInfoList, successFunction) {
- var url = '/admin_project/addProject';
+ var url = 'admin_project/addProject';
postForServer(url, changeInfoList, successFunction);
}
function removeProject(changeInfoList, successFunction) {
- var url = '/admin_project/removeProject';
+ var url = 'admin_project/removeProject';
postForServer(url, changeInfoList, successFunction);
}
function modifyProject(changeInfoList, successFunction) {
- var url = '/admin_project/modifyProject';
+ var url = 'admin_project/modifyProject';
postForServer(url, changeInfoList, successFunction);
}
// controller : admin_distribution
function queryAllDistribution(successFunction) {
- var url = '/admin_distribution/queryAllDistribution';
+ var url = 'admin_distribution/queryAllDistribution';
getInfoFromServer(url, successFunction);
}
function queryDistributionInfo(distName, successFunction) {
- var url = '/admin_distribution/queryDistributionInfo/' + distName;
+ var url = 'admin_distribution/queryDistributionInfo/' + distName;
getInfoFromServer(url, successFunction);
}
function addDistribution(changeInfoList, successFunction) {
- var url = '/admin_distribution/addDistribution';
+ var url = 'admin_distribution/addDistribution';
postForServer(url, changeInfoList, successFunction);
}
function removeDistribution(changeInfoList, successFunction) {
- var url = '/admin_distribution/removeDistribution';
+ var url = 'admin_distribution/removeDistribution';
postForServer(url, changeInfoList, successFunction);
}
function modifyDistribution(changeInfoList, successFunction) {
- var url = '/admin_distribution/modifyDistribution';
+ var url = 'admin_distribution/modifyDistribution';
postForServer(url, changeInfoList, successFunction);
}
// controller : admin
function queryAllOS(successFunction) {
- var url = '/admin/queryAllOS';
+ var url = 'admin/queryAllOS';
getInfoFromServer(url, successFunction);
}
function queryAllOSCategory(successFunction) {
- var url = '/admin/queryAllOSCategory';
+ var url = 'admin/queryAllOSCategory';
getInfoFromServer(url, successFunction);
}
});
}
+function deleteForServer(url, successFunction) {
+ $.ajax({
+ url: baseUrl+url,
+ type: 'DELETE',
+ async: false,
+ cache: false,
+ dataType: 'xml',
+ timeout: 1000,
+ success: function(xml) {
+ expireSession();
+ dibsWebClear();
+ },
+ error: function(jqXHR) {
+ errorProcess(jqXHR);
+ }
+ });
+}
+
+/*
+ jobs.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
var suggestion_list = new Array();
$(function() {
function queryJobListAll(distribution) {
var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
clearJobList();
- queryJobList(baseUrl+"/jobs/list", distribution, selectedStatus, "LATEST");
+ queryJobList(baseUrl+"jobs/list", distribution, selectedStatus, "LATEST");
}
function queryJobListJobId(distribution, jobId) {
var distribution = $("#jobSelectDistribution option:selected").val();
var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
clearJobList();
- queryJobList(baseUrl+"/jobs/list", distribution, selectedStatus, eval(parseInt(jobId) + 1));
+ queryJobList(baseUrl+"jobs/list", distribution, selectedStatus, eval(parseInt(jobId) + 1));
}
function queryJobListUserName(distribution, name) {
var distribution = $("#jobSelectDistribution option:selected").val();
var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
clearJobList();
- queryJobList(baseUrl+"/jobs/listSearchUser/"+name, distribution, selectedStatus, "LATEST");
+ queryJobList(baseUrl+"jobs/listSearchUser/"+name, distribution, selectedStatus, "LATEST");
}
function queryJobListUserGroup(distribution, group) {
var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
clearJobList();
- queryJobList(baseUrl+"/jobs/listSearchGroup/"+group, distribution, selectedStatus, "LATEST");
+ queryJobList(baseUrl+"jobs/listSearchGroup/"+group, distribution, selectedStatus, "LATEST");
}
function queryJobListProject(distribution, project) {
var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
clearJobList();
- queryJobList(baseUrl+"/jobs/listSearchProject/"+project, distribution, selectedStatus, "LATEST");
+ queryJobList(baseUrl+"jobs/listSearchProject/"+project, distribution, selectedStatus, "LATEST");
}
function queryJobListDate(distribution, date) {
var selectedStatus= $('#jobStatusSelect').find("input[type='radio']:checked").val();
clearJobList();
- queryJobList(baseUrl+"/jobs/listSearchDate/"+date, distribution, selectedStatus, "LATEST");
+ queryJobList(baseUrl+"jobs/listSearchDate/"+date, distribution, selectedStatus, "LATEST");
}
function jobQueryDistribution() {
});
}
}
+
+function jobsClear() {
+ $("#jobSelectDistribution").empty();
+ clearJobList();
+}
+
+/*
+ log.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
var request;
var stop = 1;
+/*
+ main.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
//Initialize function
-var baseUrl = "http://172.21.110.234:3300";
var baseUrl = "";
+
var init = function () {
- // TODO:: Do your initialization job
console.log("init() called");
+ var myUrl = location.href;
+ var urlCut = myUrl.indexOf("index.html");
+ var sharpCut = myUrl.indexOf("#");
+
+ if(urlCut > 0) {
+ baseUrl = myUrl.substring(0, urlCut);
+ }
+ else if(sharpCut > 0) {
+ baseUrl = myUrl.substring(0, sharpCut);
+ }
+ else {
+ baseUrl = window.location.href;
+ }
+ console.log("base url:"+baseUrl);
};
$(document).ready(init);
}
function generateNavigationBar(id) {
- var admin = sessionStorage.sessionInfoAdmin;
- if(admin == "TRUE")
- {
- generateNavigationBarAdmin(id);
- }
- else
+ if(sessionStorage.sessionInfoEmail)
{
- generateNavigationBarUser(id);
+ var admin = sessionStorage.sessionInfoAdmin;
+ if(admin == "TRUE")
+ {
+ generateNavigationBarAdmin(id);
+ }
+ else
+ {
+ generateNavigationBarUser(id);
+ }
+ } else {
+ $("#"+id+"-navigationBar").empty();
}
}
$("#"+id+"-navigationBar").empty();
$("#"+id+"-navigationBar").append(naviHtml).listview("refresh");
}
+
+function dibsWebClear(){
+ projectsClear();
+ buildClear();
+ jobsClear();
+}
+/*
+ popup-window.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
(function($){
$.fn.popupWindow = function(instanceSettings){
+/*
+ post-process.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
$('.uploadWindow').popupWindow({
height:200,
width:400,
+/*
+ projects.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
function projectsInit() {
if( $("#projects-select-distribution").children().length == 0 ) {
queryDistribution( function(xml) {
});
});
}
+
+function projectsClear() {
+ $("#projects-select-distribution").empty();
+
+ var projectList = document.getElementById("projects-project-list");
+ /* remove all list */
+ while(projectList.hasChildNodes())
+ {
+ projectList.removeChild(projectList.firstChild);
+ }
+}
+
+/*
+ session.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
$(function() {
$('#login-password').keypress(function() {
if(event.keyCode == '13') {
});
}
-function logout(){
- $.ajax({
- url: baseUrl + "/sessions/logout",
- type: 'DELETE',
- async: false,
- cache: false,
- dataType: 'xml',
- timeout: 1000,
- error: function() {
- alert('Error loading XML document');
- },
- success: function(xml) {
- expireSession();
- }
- });
-}
-
-
function signupQueryGroupList() {
queryAllGroup( function(xml) {
$("#applyGroupRadio").children().remove();
+/*
+ user.js
+
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact:
+Sungmin Kim <dev.sungmin.kim@samsung.com>
+Taejun Ha <taejun.ha@samsung.com>
+Jiil Hyoun <jiil.hyoun@samsung.com>
+Donghyuk Yang <donghyuk.yang@samsung.com>
+DongHee Yang <donghee.yang@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Contributors:
+- S-Core Co., Ltd
+*/
+
$(function() {
$('#user-password-confirmation').keypress(function() {
if(event.keyCode == '13') {
var name = $('#user-name').val();
var password = $('#user-password').val();
var password_confirm = $('#user-password-confirmation').val();
+ var emailCheckReg = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/
- if(email == ""){
+ if(email == "" || !emailCheckReg.test(email)){
alert("Email is invalid");
return false;
}
+<!DOCTYPE html>
+<html>
+<head>
+ <script type="text/javascript" src="javascripts/jquery-1.7.1.js"></script>
+</head>
+
+<body>
+ <table id="logTable" style="border: #000000 1px solid; font-size:9pt">
+ </table>
+ <div data-role="controlgroup" data-type="horizontal">
+ <input type="button" value="More" onClick=moreLog() / >
+ <input type="button" value="Stop" onClick=stopLog() / >
+ </div>
+</body>
+</html>
+
<script language="javascript" type="text/javascript">
var request;
var stop = 1;
+ var baseUrl;
var job_id;
var last_line = 0;
- var myUrl = location.href;
- var varCut = myUrl.indexOf("?");
- var varCheck = myUrl.substring(varCut+1);
- eval(varCheck);
-
- job_id = jobid;
-
function createHttpRequest() {
request = false;
try {
createHttpRequest();
if(request) {
var next_line = Number(last_line) + 1;
- var url = "/jobs/log/"+ job_id + "/" + next_line;
+ var url = baseUrl + "jobs/log/"+ job_id + "/" + next_line;
request.open("GET", url, true);
request.onreadystatechange = updatePage;
request.send(null);
window.scrollTo(0,getYScroll());
}
- requestLog();
-</script>
+ var init = function () {
+ console.log("init() called");
+ var myUrl = location.href;
+ var varCut = myUrl.indexOf("?");
+ var varCheck = myUrl.substring(varCut+1);
+ eval(varCheck);
-<div data-role="page" id="jobs">
- <table id="logTable" style="border: #000000 1px solid; font-size:9pt">
- </table>
- <div data-role="controlgroup" data-type="horizontal">
- <input type="button" value="More" onClick=moreLog() / >
- <input type="button" value="Stop" onClick=stopLog() / >
- </div>
-</div>
+ job_id = jobid;
+ console.log(job_id);
+ var baseCut = myUrl.indexOf("log.html");
+
+ baseUrl = myUrl.substring(0, baseCut);
+ console.log("base url:"+baseUrl);
+
+ requestLog();
+ };
+
+ $(document).ready(init);
+</script>