mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 01:31:28 +00:00
add dijit/dojo stuff; initial ui mockup
This commit is contained in:
26
lib/dojo/data/api/Identity.js
Normal file
26
lib/dojo/data/api/Identity.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.data.api.Identity"]){
|
||||
dojo._hasResource["dojo.data.api.Identity"]=true;
|
||||
dojo.provide("dojo.data.api.Identity");
|
||||
dojo.require("dojo.data.api.Read");
|
||||
dojo.declare("dojo.data.api.Identity",dojo.data.api.Read,{getFeatures:function(){
|
||||
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
|
||||
},getIdentity:function(_1){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Identity.getIdentity");
|
||||
var _2=null;
|
||||
return _2;
|
||||
},getIdentityAttributes:function(_3){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Identity.getIdentityAttributes");
|
||||
return null;
|
||||
},fetchItemByIdentity:function(_4){
|
||||
if(!this.isItemLoaded(_4.item)){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Identity.fetchItemByIdentity");
|
||||
}
|
||||
}});
|
||||
}
|
||||
21
lib/dojo/data/api/Notification.js
Normal file
21
lib/dojo/data/api/Notification.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.data.api.Notification"]){
|
||||
dojo._hasResource["dojo.data.api.Notification"]=true;
|
||||
dojo.provide("dojo.data.api.Notification");
|
||||
dojo.require("dojo.data.api.Read");
|
||||
dojo.declare("dojo.data.api.Notification",dojo.data.api.Read,{getFeatures:function(){
|
||||
return {"dojo.data.api.Read":true,"dojo.data.api.Notification":true};
|
||||
},onSet:function(_1,_2,_3,_4){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Notification.onSet");
|
||||
},onNew:function(_5,_6){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Notification.onNew");
|
||||
},onDelete:function(_7){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Notification.onDelete");
|
||||
}});
|
||||
}
|
||||
55
lib/dojo/data/api/Read.js
Normal file
55
lib/dojo/data/api/Read.js
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.data.api.Read"]){
|
||||
dojo._hasResource["dojo.data.api.Read"]=true;
|
||||
dojo.provide("dojo.data.api.Read");
|
||||
dojo.require("dojo.data.api.Request");
|
||||
dojo.declare("dojo.data.api.Read",null,{getValue:function(_1,_2,_3){
|
||||
var _4=null;
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.getValue");
|
||||
return _4;
|
||||
},getValues:function(_5,_6){
|
||||
var _7=[];
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.getValues");
|
||||
return _7;
|
||||
},getAttributes:function(_8){
|
||||
var _9=[];
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.getAttributes");
|
||||
return _9;
|
||||
},hasAttribute:function(_a,_b){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.hasAttribute");
|
||||
return false;
|
||||
},containsValue:function(_c,_d,_e){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.containsValue");
|
||||
return false;
|
||||
},isItem:function(_f){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.isItem");
|
||||
return false;
|
||||
},isItemLoaded:function(_10){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.isItemLoaded");
|
||||
return false;
|
||||
},loadItem:function(_11){
|
||||
if(!this.isItemLoaded(_11.item)){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.loadItem");
|
||||
}
|
||||
},fetch:function(_12){
|
||||
var _13=null;
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.fetch");
|
||||
return _13;
|
||||
},getFeatures:function(){
|
||||
return {"dojo.data.api.Read":true};
|
||||
},close:function(_14){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.close");
|
||||
},getLabel:function(_15){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.getLabel");
|
||||
return undefined;
|
||||
},getLabelAttributes:function(_16){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Read.getLabelAttributes");
|
||||
return null;
|
||||
}});
|
||||
}
|
||||
14
lib/dojo/data/api/Request.js
Normal file
14
lib/dojo/data/api/Request.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.data.api.Request"]){
|
||||
dojo._hasResource["dojo.data.api.Request"]=true;
|
||||
dojo.provide("dojo.data.api.Request");
|
||||
dojo.declare("dojo.data.api.Request",null,{abort:function(){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Request.abort");
|
||||
}});
|
||||
}
|
||||
39
lib/dojo/data/api/Write.js
Normal file
39
lib/dojo/data/api/Write.js
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.data.api.Write"]){
|
||||
dojo._hasResource["dojo.data.api.Write"]=true;
|
||||
dojo.provide("dojo.data.api.Write");
|
||||
dojo.require("dojo.data.api.Read");
|
||||
dojo.declare("dojo.data.api.Write",dojo.data.api.Read,{getFeatures:function(){
|
||||
return {"dojo.data.api.Read":true,"dojo.data.api.Write":true};
|
||||
},newItem:function(_1,_2){
|
||||
var _3;
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.newItem");
|
||||
return _3;
|
||||
},deleteItem:function(_4){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.deleteItem");
|
||||
return false;
|
||||
},setValue:function(_5,_6,_7){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.setValue");
|
||||
return false;
|
||||
},setValues:function(_8,_9,_a){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.setValues");
|
||||
return false;
|
||||
},unsetAttribute:function(_b,_c){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.clear");
|
||||
return false;
|
||||
},save:function(_d){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.save");
|
||||
},revert:function(){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.revert");
|
||||
return false;
|
||||
},isDirty:function(_e){
|
||||
throw new Error("Unimplemented API: dojo.data.api.Write.isDirty");
|
||||
return false;
|
||||
}});
|
||||
}
|
||||
Reference in New Issue
Block a user