You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2012/01/13 18:01:06 UTC
svn commit: r1231184 - in
/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva:
repositories.js templates/repositories.html
Author: olamy
Date: Fri Jan 13 17:01:06 2012
New Revision: 1231184
URL: http://svn.apache.org/viewvc?rev=1231184&view=rev
Log:
missed *again* to add files :-)
Added:
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js (with props)
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html (with props)
Added: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js?rev=1231184&view=auto
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js (added)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js Fri Jan 13 17:01:06 2012
@@ -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
Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html?rev=1231184&view=auto
==============================================================================
(empty)
Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repositories.html
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision