summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-10 22:45:18 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2014-03-24 01:18:13 +0200
commit7d9c43916b0600ac4879dfe9793eab807a83ab2b (patch)
treeec54ed64c9a557b6ea4ad88d31138a02d3e0cd04 /web
parentcb6c243dc356ef1d46d7ddb96e6ea6ae007c6cca (diff)
downloadaconf-7d9c43916b0600ac4879dfe9793eab807a83ab2b.tar.bz2
aconf-7d9c43916b0600ac4879dfe9793eab807a83ab2b.tar.xz
rename ACF2 to Alpine Configurator (aconf)
Diffstat (limited to 'web')
-rw-r--r--web/client.js28
-rw-r--r--web/dom.js2
-rw-r--r--web/layout/stacked.js2
-rw-r--r--web/layout/tabular.js8
-rw-r--r--web/statusbar.js2
-rw-r--r--web/transaction.js8
-rw-r--r--web/widget/abstract/base.js2
-rw-r--r--web/widget/abstract/fields.js20
-rw-r--r--web/widget/abstract/inline.js2
-rw-r--r--web/widget/abstract/node.js2
-rw-r--r--web/widget/audio.js2
-rw-r--r--web/widget/checkbox.js2
-rw-r--r--web/widget/checkboxes.js6
-rw-r--r--web/widget/combobox.js2
-rw-r--r--web/widget/date.js2
-rw-r--r--web/widget/field.js8
-rw-r--r--web/widget/inline.js8
-rw-r--r--web/widget/link.js2
-rw-r--r--web/widget/reference.js2
-rw-r--r--web/widget/table/header.js2
-rw-r--r--web/widget/table/row.js2
21 files changed, 57 insertions, 57 deletions
diff --git a/web/client.js b/web/client.js
index 9bbe75c..67d8e18 100644
--- a/web/client.js
+++ b/web/client.js
@@ -5,7 +5,7 @@
requirejs.config({
baseUrl: "lib",
- paths: {acf2: ".."},
+ paths: {aconf: ".."},
shim: {
underscore: {exports: "_"},
"jquery-bbq": {deps: ["jquery"]},
@@ -20,18 +20,18 @@ requirejs.config({
require(
[
- "acf2/dom",
- "acf2/error",
- "acf2/navigation",
- "acf2/path",
- "acf2/statusbar",
- "acf2/transaction",
- "acf2/type",
- "acf2/widget/inline",
+ "aconf/dom",
+ "aconf/error",
+ "aconf/navigation",
+ "aconf/path",
+ "aconf/statusbar",
+ "aconf/transaction",
+ "aconf/type",
+ "aconf/widget/inline",
"jquery",
"underscore",
- "acf2/layout/stacked",
- "acf2/layout/tabular",
+ "aconf/layout/stacked",
+ "aconf/layout/tabular",
"jquery-blockui"
],
function(
@@ -48,8 +48,8 @@ require(
}).done(function(data, status, xhr) {
txnMgr = txnMgr(
- xhr.getResponseHeader("X-ACF-Auth-Token"),
- xhr.getResponseHeader("X-ACF-Save-Required") == "1"
+ xhr.getResponseHeader("X-AConf-Auth-Token"),
+ xhr.getResponseHeader("X-AConf-Save-Required") == "1"
);
@@ -62,7 +62,7 @@ require(
var layout = data.meta.widget;
var name = pth.split(path).pop();
(layout ?
- require("acf2/layout/" + layout) :
+ require("aconf/layout/" + layout) :
Inline).extend({
createEl: function() {
return $("#content").empty();
diff --git a/web/dom.js b/web/dom.js
index 5c8fb8e..ee1931f 100644
--- a/web/dom.js
+++ b/web/dom.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/navigation", "jquery", "underscore"], function(navi, $, _) {
+define(["aconf/navigation", "jquery", "underscore"], function(navi, $, _) {
function href() {
return $("<a>").attr({href: "javascript:void(0);"});
}
diff --git a/web/layout/stacked.js b/web/layout/stacked.js
index ecebbd8..acff8a6 100644
--- a/web/layout/stacked.js
+++ b/web/layout/stacked.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/type", "acf2/widget/inline"], function(type, Base) {
+define(["aconf/type", "aconf/widget/inline"], function(type, Base) {
return Base.extend({
widget: function(meta) {
return type.isTreeNode(meta) ? Base : Base.widget.call(this, meta);
diff --git a/web/layout/tabular.js b/web/layout/tabular.js
index 084d85c..db849e8 100644
--- a/web/layout/tabular.js
+++ b/web/layout/tabular.js
@@ -5,10 +5,10 @@
define(
[
- "acf2/type",
- "acf2/widget/inline",
- "acf2/widget/table/header",
- "acf2/widget/table/row"
+ "aconf/type",
+ "aconf/widget/inline",
+ "aconf/widget/table/header",
+ "aconf/widget/table/row"
],
function(type, Base, TableHeader, TableRow) {
return Base.extend({
diff --git a/web/statusbar.js b/web/statusbar.js
index 28e5ba4..69ff6be 100644
--- a/web/statusbar.js
+++ b/web/statusbar.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/dom", "jquery"], function(dom, $) {
+define(["aconf/dom", "jquery"], function(dom, $) {
function set(status, msg, mode) {
$("#status").prop("class", status);
dom.setText($("#status p"), msg);
diff --git a/web/transaction.js b/web/transaction.js
index a850488..c843b34 100644
--- a/web/transaction.js
+++ b/web/transaction.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/path", "acf2/type", "jquery", "underscore", "jquery-blockui"],
+ ["aconf/path", "aconf/type", "jquery", "underscore", "jquery-blockui"],
function(pth, type, $, _) {
return function(token, saveRequired) {
var txnMgr = {};
@@ -22,8 +22,8 @@ define(
function request(url, options) {
options = options || {};
- options.headers = {"X-ACF-Auth-Token": token};
- if (txn) options.headers["X-ACF-Transaction-ID"] = txn;
+ options.headers = {"X-AConf-Auth-Token": token};
+ if (txn) options.headers["X-AConf-Transaction-ID"] = txn;
if (options.data != undefined)
options.data = JSON.stringify(options.data);
return $.ajax(encodeURI(url), options);
@@ -384,7 +384,7 @@ define(
else request("/transaction", {type: "POST"})
.done(function(data, status, xhr) {
- txn = xhr.getResponseHeader("X-ACF-Transaction-ID");
+ txn = xhr.getResponseHeader("X-AConf-Transaction-ID");
def.resolve();
})
.fail(function() { def.reject(); });
diff --git a/web/widget/abstract/base.js b/web/widget/abstract/base.js
index 7bbe711..58a1932 100644
--- a/web/widget/abstract/base.js
+++ b/web/widget/abstract/base.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/dom", "jquery", "underscore"], function(dom, $, _) {
+define(["aconf/dom", "jquery", "underscore"], function(dom, $, _) {
return {
extend: function(spec) {
var res = Object.create(this);
diff --git a/web/widget/abstract/fields.js b/web/widget/abstract/fields.js
index 360364d..689f88a 100644
--- a/web/widget/abstract/fields.js
+++ b/web/widget/abstract/fields.js
@@ -5,17 +5,17 @@
define(
[
- "acf2/widget/abstract/node",
+ "aconf/widget/abstract/node",
"jquery",
"underscore",
- "acf2/widget/audio",
- "acf2/widget/checkbox",
- "acf2/widget/checkboxes",
- "acf2/widget/combobox",
- "acf2/widget/date",
- "acf2/widget/field",
- "acf2/widget/inline",
- "acf2/widget/reference"
+ "aconf/widget/audio",
+ "aconf/widget/checkbox",
+ "aconf/widget/checkboxes",
+ "aconf/widget/combobox",
+ "aconf/widget/date",
+ "aconf/widget/field",
+ "aconf/widget/inline",
+ "aconf/widget/reference"
],
function(Base, $, _) {
return Base.extend({
@@ -115,7 +115,7 @@ define(
},
widget: function(meta) {
- return require("acf2/widget/" + meta.widget);
+ return require("aconf/widget/" + meta.widget);
},
validate: function(data) {
diff --git a/web/widget/abstract/inline.js b/web/widget/abstract/inline.js
index dae1797..dedde36 100644
--- a/web/widget/abstract/inline.js
+++ b/web/widget/abstract/inline.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/statusbar", "acf2/widget/link", "jquery", "underscore"],
+ ["aconf/statusbar", "aconf/widget/link", "jquery", "underscore"],
function(statusBar, Base, $, _) {
return Base.extend({
init: function(
diff --git a/web/widget/abstract/node.js b/web/widget/abstract/node.js
index 2ec95e2..22c35fa 100644
--- a/web/widget/abstract/node.js
+++ b/web/widget/abstract/node.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/statusbar", "acf2/widget/abstract/inline", "jquery", "underscore"],
+ ["aconf/statusbar", "aconf/widget/abstract/inline", "jquery", "underscore"],
function(statusBar, Base, $, _) {
return Base.extend({
init: function(
diff --git a/web/widget/audio.js b/web/widget/audio.js
index 184fd5e..99e410d 100644
--- a/web/widget/audio.js
+++ b/web/widget/audio.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/dom", "acf2/widget/abstract/inline", "jquery", "underscore"],
+ ["aconf/dom", "aconf/widget/abstract/inline", "jquery", "underscore"],
function(dom, Base, $, _) {
return Base.extend({
render: function(value, meta) {
diff --git a/web/widget/checkbox.js b/web/widget/checkbox.js
index 543433c..b31f29a 100644
--- a/web/widget/checkbox.js
+++ b/web/widget/checkbox.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/widget/field", "jquery"], function(Base, $) {
+define(["aconf/widget/field", "jquery"], function(Base, $) {
return Base.extend({
staticRender: function(value, meta) {
return $("<td>").text(value ? "Yes" : "No");
diff --git a/web/widget/checkboxes.js b/web/widget/checkboxes.js
index 2252aa4..b8f062c 100644
--- a/web/widget/checkboxes.js
+++ b/web/widget/checkboxes.js
@@ -5,9 +5,9 @@
define(
[
- "acf2/dom",
- "acf2/statusbar",
- "acf2/widget/abstract/node",
+ "aconf/dom",
+ "aconf/statusbar",
+ "aconf/widget/abstract/node",
"jquery",
"underscore"
],
diff --git a/web/widget/combobox.js b/web/widget/combobox.js
index 6d9c16e..e093cdd 100644
--- a/web/widget/combobox.js
+++ b/web/widget/combobox.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/widget/field", "jquery", "underscore"], function(Base, $, _) {
+define(["aconf/widget/field", "jquery", "underscore"], function(Base, $, _) {
return Base.extend({
createEl: function() { return $("<select>"); },
diff --git a/web/widget/date.js b/web/widget/date.js
index 0f97e08..23c8fe0 100644
--- a/web/widget/date.js
+++ b/web/widget/date.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/widget/field", "jquery-ui/datepicker"], function(Base) {
+define(["aconf/widget/field", "jquery-ui/datepicker"], function(Base) {
return Base.extend({
createEl: function() {
return Base.createEl.call(this)
diff --git a/web/widget/field.js b/web/widget/field.js
index b0c6034..2c6f865 100644
--- a/web/widget/field.js
+++ b/web/widget/field.js
@@ -5,10 +5,10 @@
define(
[
- "acf2/dom",
- "acf2/error",
- "acf2/statusbar",
- "acf2/widget/abstract/base",
+ "aconf/dom",
+ "aconf/error",
+ "aconf/statusbar",
+ "aconf/widget/abstract/base",
"jquery",
"underscore"
],
diff --git a/web/widget/inline.js b/web/widget/inline.js
index d9259ec..01e36c0 100644
--- a/web/widget/inline.js
+++ b/web/widget/inline.js
@@ -5,10 +5,10 @@
define(
[
- "acf2/dom",
- "acf2/statusbar",
- "acf2/type",
- "acf2/widget/abstract/fields",
+ "aconf/dom",
+ "aconf/statusbar",
+ "aconf/type",
+ "aconf/widget/abstract/fields",
"jquery",
"underscore",
"jquery-ui/sortable"
diff --git a/web/widget/link.js b/web/widget/link.js
index f6539c6..f2094a8 100644
--- a/web/widget/link.js
+++ b/web/widget/link.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/dom", "acf2/widget/abstract/base", "jquery"],
+ ["aconf/dom", "aconf/widget/abstract/base", "jquery"],
function(dom, Base, $) {
return Base.extend({
staticRender: function(value, meta) {
diff --git a/web/widget/reference.js b/web/widget/reference.js
index 7e0f79d..7c5a143 100644
--- a/web/widget/reference.js
+++ b/web/widget/reference.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/dom", "acf2/widget/combobox", "jquery", "underscore"],
+ ["aconf/dom", "aconf/widget/combobox", "jquery", "underscore"],
function(dom, Base, $, _) {
return Base.extend({
init: function(
diff --git a/web/widget/table/header.js b/web/widget/table/header.js
index 5a0ac6f..e6683c1 100644
--- a/web/widget/table/header.js
+++ b/web/widget/table/header.js
@@ -3,7 +3,7 @@
* See LICENSE file for license details
*/
-define(["acf2/widget/table/row", "jquery"], function(Base, $) {
+define(["aconf/widget/table/row", "jquery"], function(Base, $) {
return Base.extend({
init: function(
data, name, meta, level, editable, removable
diff --git a/web/widget/table/row.js b/web/widget/table/row.js
index 49cf296..24e0e50 100644
--- a/web/widget/table/row.js
+++ b/web/widget/table/row.js
@@ -4,7 +4,7 @@
*/
define(
- ["acf2/dom", "acf2/widget/abstract/fields", "jquery", "underscore"],
+ ["aconf/dom", "aconf/widget/abstract/fields", "jquery", "underscore"],
function(dom, Base, $, _) {
return Base.extend({
createEl: function() {