From: Olivier Lamy Date: Fri, 13 Jan 2012 17:01:06 +0000 (+0000) Subject: missed *again* to add files :-) X-Git-Tag: archiva-1.4-M3~1595 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91fb1f16ebf96b04a56fb7b8f1e609b37b9fbcbc;p=archiva.git missed *again* to add files :-) git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1231184 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js new file mode 100644 index 000000000..5248ec6f9 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -0,0 +1,80 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +$(function() { + + ManagedRepository=function(id,name,layout,indexDirectory,location,snapshots,releases,blockRedeployments,cronExpression, + scanned,daysOlder,retentionCount,deleteReleasedSnapshots,stageRepoNeeded){ + //private String id; + id=ko.observable(id); + + //private String name; + name=ko.observable(name); + + //private String layout = "default"; + layout=ko.observable(layout); + + //private String indexDirectory; + indexDirectory=ko.observable(indexDirectory); + + //private String location; + location=ko.observable(location); + + //private boolean snapshots = false; + snapshots=ko.observable(snapshots); + + //private boolean releases = true; + releases=ko.observable(releases); + + //private boolean blockRedeployments = false; + blockRedeployments=ko.observable(blockRedeployments); + + //private String cronExpression = "0 0 * * * ?"; + cronExpression=ko.observable(cronExpression); + + //private ManagedRepository stagingRepository; + + //private boolean scanned = false; + scanned=ko.observable(scanned); + + //private int daysOlder = 100; + daysOlder=ko.observable(daysOlder); + + //private int retentionCount = 2; + retentionCount=ko.observable(retentionCount); + + //private boolean deleteReleasedSnapshots; + deleteReleasedSnapshots=ko.observable(deleteReleasedSnapshots); + + //private boolean stageRepoNeeded; + stageRepoNeeded=ko.observable(stageRepoNeeded); + } + + + displayRepositoriesGrid=function(){ + clearUserMessages(); + + } + + mapManagedRepository=function(data){ + return new ManagedRepository(data.id,data.name,data.layout,data.indexDirectory,data.location,data.snapshots,data.releases, + data.blockRedeployments,data.cronExpression, + data.scanned,data.daysOlder,data.retentionCount,data.deleteReleasedSnapshots,data.stageRepoNeeded); + } + +}); \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html new file mode 100644 index 000000000..e69de29bb