Skip to content

Commit

Permalink
Samuel checkin DI Container.js
Browse files Browse the repository at this point in the history
First working Upload of DI Conatiner Framework
  • Loading branch information
contactsamie committed Sep 19, 2013
1 parent 8cf9924 commit 4ea7e88
Show file tree
Hide file tree
Showing 188 changed files with 20,184 additions and 0 deletions.
19 changes: 19 additions & 0 deletions DIContainer/SampleAspx/Default.aspx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DIContainer.SampleAspx.Default" %>

<%@ Register Src="~/TemplateProject/TemplateProject.ascx" TagPrefix="uc1" TagName="TemplateProject" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<uc1:TemplateProject runat="server" id="TemplateProject" />
<script src="script/config.main.js"></script>
</div>
</form>
</body>
</html>
17 changes: 17 additions & 0 deletions DIContainer/SampleAspx/Default.aspx.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DIContainer.SampleAspx
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
}
33 changes: 33 additions & 0 deletions DIContainer/SampleAspx/Default.aspx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions DIContainer/SampleAspx/script/config.main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//first i configure hte calendar
samqode.main.API = {
url: "../../wcalendar_service/wcalendar.ashx"
};

samqode.main.DIContainer.loadScripts([

"../../TemplateProject/core/js/main.js",// load application
"script/integration.main.js"// then i integrate
]);

12 changes: 12 additions & 0 deletions DIContainer/SampleAspx/script/integration.main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
window.samqode.main.DIContainer.ready(function (win, $, DIContainer) {
samqode.main.ready(function (internalApi) {
internalApi.on("myBoxClicked", function (eventArg) {
// console.log( );
console.log("event fired ...");
console.log(eventArg);
console.log(internalApi);
console.log($);
DIContainer.Interface().DOM.changeWidthOfMyBox("1102px");
});
});
});
30 changes: 30 additions & 0 deletions DIContainer/TemplateProject.ascx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TemplateProject.ascx.cs" Inherits="RosterWare.Web.TemplateProject.TemplateProject" %>

<link href="../../TemplateProject/core/css/main.css" rel="stylesheet" />
<link href="../../TemplateProject/lib/bootstrap/css/bootstrap.workoptics.css" rel="stylesheet" />
<link href="../../TemplateProject/lib/jquery-ui-1.9.2/themes/base/minified/jquery-ui.min.css" rel="stylesheet" />


<script src="../../TemplateProject/lib/jquery/jquery-1.9.1.js"></script>
<script src="../../TemplateProject/core/js/DIContainer.js"></script>
<script src="../../TemplateProject/core/js/InterfaceFactory.js"></script>
<script>
window.jQuery_1_9_2 = jQuery.noConflict();
window.pad00 = function (n) {
return ("0" + n).slice(-2);
};
jQuery_1_9_2.ajaxSetup({
cache: true
});
window.samqode = {};
window.samqode.project = "TemplateProject";
window.samqode[window.samqode.project] = {};
window.samqode.main = window.samqode[window.samqode.project];
window.samqode.version="1." + (((new Date()).getTime() * 10000) + 621355968000000000);
window.samqode.main.DIContainer = new window._DIContainer(window.samqode.version, jQuery_1_9_2);
</script>

<script src="../../TemplateProject/lib/jquery-ui-1.9.2/external/jquery.cookie.js"></script>
<script src="../../TemplateProject/lib/jquery-ui-1.9.2/ui/minified/jquery-ui.min.js"></script>

<div class="hello"> hello world </div>
17 changes: 17 additions & 0 deletions DIContainer/TemplateProject.ascx.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DIContainer.TemplateProject
{
public partial class TemplateProject : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
}
17 changes: 17 additions & 0 deletions DIContainer/TemplateProject.ascx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions DIContainer/Web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<configuration>

<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</configuration>
15 changes: 15 additions & 0 deletions DIContainer/core/Tests/TestRunner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit basic example</title>
<link href="../css/qunit.css" rel="stylesheet" />
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../js/qunit.js"></script>
<script src="../js/samqode.wcalendar.js"></script>
<script src="../js/samqode.wcalendar.Test.js"></script>
</body>
</html>
7 changes: 7 additions & 0 deletions DIContainer/core/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.hello {
cursor:pointer;
width:100px;
height:100px;
background-color:#c0c0c0;

}
2 changes: 2 additions & 0 deletions DIContainer/core/css/qunit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
body {
}
Binary file added DIContainer/core/img/ajax-loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DIContainer/core/img/ajax-loadersh2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DIContainer/core/img/ajax-shift-loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4ea7e88

Please sign in to comment.