mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-04 14:18:59 +00:00
Deploying to gh-pages from @ cappuccino/cappuccino@0da009d1b9 🚀
This commit is contained in:
1 parent
1f632291d8
commit
b9493d5fae
8 files changed
+717
-146
No files matched your search
Executable
+178
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* AppController.j
|
||||
*
|
||||
* Markdown Live Viewer mit kollabiertem Rahmen-Layout und adaptiver Spalten-Projektion
|
||||
*/
|
||||
|
||||
@import <Foundation/Foundation.j>
|
||||
@import <AppKit/AppKit.j>
|
||||
|
||||
// --- MAIN CONTROLLER ---
|
||||
@implementation AppController : CPObject
|
||||
{
|
||||
CPTextView _markdownInputTextView;
|
||||
CPTextView _markdownRenderTextView;
|
||||
CPScrollView _inputScrollView;
|
||||
CPScrollView _renderScrollView;
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
||||
{
|
||||
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask],
|
||||
contentView = [theWindow contentView];
|
||||
|
||||
[contentView setBackgroundColor:[CPColor colorWithWhite:0.95 alpha:1.0]];
|
||||
|
||||
// 1. Tool-Bar
|
||||
var toolbarView = [[CPView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([contentView bounds]), 60)];
|
||||
[toolbarView setAutoresizingMask:CPViewWidthSizable];
|
||||
[toolbarView setBackgroundColor:[CPColor colorWithWhite:0.88 alpha:1.0]];
|
||||
[contentView addSubview:toolbarView];
|
||||
|
||||
var currentX = 15;
|
||||
|
||||
var renderButton = [[CPButton alloc] initWithFrame:CGRectMake(currentX, 15, 140, 30)];
|
||||
[renderButton setTitle:@"Force Render"];
|
||||
[renderButton setTarget:self];
|
||||
[renderButton setAction:@selector(renderMarkdownAction:)];
|
||||
[toolbarView addSubview:renderButton];
|
||||
currentX += 150;
|
||||
|
||||
var clearButton = [[CPButton alloc] initWithFrame:CGRectMake(currentX, 15, 100, 30)];
|
||||
[clearButton setTitle:@"Clear All"];
|
||||
[clearButton setTarget:self];
|
||||
[clearButton setAction:@selector(clearAction:)];
|
||||
[toolbarView addSubview:clearButton];
|
||||
|
||||
// 2. Workspace Split-View Layout
|
||||
var splitView = [[CPSplitView alloc] initWithFrame:CGRectMake(0, 60, CGRectGetWidth([contentView bounds]), CGRectGetHeight([contentView bounds]) - 60)];
|
||||
[splitView setVertical:YES];
|
||||
[splitView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
|
||||
|
||||
var leftContainer = [[CPView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([splitView bounds]) / 2, CGRectGetHeight([splitView bounds]))];
|
||||
[leftContainer setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
|
||||
|
||||
var rightContainer = [[CPView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([splitView bounds]) / 2, CGRectGetHeight([splitView bounds]))];
|
||||
[rightContainer setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
|
||||
|
||||
[splitView addSubview:leftContainer];
|
||||
[splitView addSubview:rightContainer];
|
||||
[contentView addSubview:splitView];
|
||||
|
||||
// Split-Pane Größenänderung überwachen
|
||||
[[CPNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(splitViewDidResizeSubviews:)
|
||||
name:CPSplitViewDidResizeSubviewsNotification
|
||||
object:splitView];
|
||||
|
||||
// Linke Seite: Plain-Text Editor
|
||||
var leftLabel = [[CPTextField alloc] initWithFrame:CGRectMake(15, 10, CGRectGetWidth([leftContainer bounds]) - 30, 20)];
|
||||
[leftLabel setStringValue:@"Markdown Editor (Plain Text)"];
|
||||
[leftLabel setFont:[CPFont boldSystemFontOfSize:14]];
|
||||
[leftLabel setAutoresizingMask:CPViewWidthSizable];
|
||||
[leftContainer addSubview:leftLabel];
|
||||
|
||||
_markdownInputTextView = [[CPTextView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([leftContainer bounds]) - 30, CGRectGetHeight([leftContainer bounds]) - 70)];
|
||||
[_markdownInputTextView setRichText:NO];
|
||||
[_markdownInputTextView setBackgroundColor:[CPColor whiteColor]];
|
||||
[_markdownInputTextView setDelegate:self];
|
||||
|
||||
[_markdownInputTextView setVerticallyResizable:YES];
|
||||
[_markdownInputTextView setHorizontallyResizable:NO];
|
||||
[_markdownInputTextView setAutoresizingMask:CPViewWidthSizable];
|
||||
[[_markdownInputTextView textContainer] setWidthTracksTextView:YES];
|
||||
|
||||
_inputScrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(15, 40, CGRectGetWidth([leftContainer bounds]) - 30, CGRectGetHeight([leftContainer bounds]) - 65)];
|
||||
[_inputScrollView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
|
||||
[_inputScrollView setDocumentView:_markdownInputTextView];
|
||||
[leftContainer addSubview:_inputScrollView];
|
||||
|
||||
// Rechte Seite: Formatted Rich-Text Viewer
|
||||
var rightLabel = [[CPTextField alloc] initWithFrame:CGRectMake(15, 10, CGRectGetWidth([rightContainer bounds]) - 30, 20)];
|
||||
[rightLabel setStringValue:@"Formatted Output (Rich Text View)"];
|
||||
[rightLabel setFont:[CPFont boldSystemFontOfSize:14]];
|
||||
[rightLabel setAutoresizingMask:CPViewWidthSizable];
|
||||
[rightContainer addSubview:rightLabel];
|
||||
|
||||
_markdownRenderTextView = [[CPTextView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth([rightContainer bounds]) - 30, CGRectGetHeight([rightContainer bounds]) - 70)];
|
||||
[_markdownRenderTextView setRichText:YES];
|
||||
[_markdownRenderTextView setEditable:YES];
|
||||
[_markdownRenderTextView setBackgroundColor:[CPColor whiteColor]];
|
||||
|
||||
[_markdownRenderTextView setVerticallyResizable:YES];
|
||||
[_markdownRenderTextView setHorizontallyResizable:NO];
|
||||
[_markdownRenderTextView setAutoresizingMask:CPViewWidthSizable];
|
||||
[[_markdownRenderTextView textContainer] setWidthTracksTextView:YES];
|
||||
|
||||
_renderScrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(15, 40, CGRectGetWidth([rightContainer bounds]) - 30, CGRectGetHeight([rightContainer bounds]) - 65)];
|
||||
[_renderScrollView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
|
||||
[_renderScrollView setDocumentView:_markdownRenderTextView];
|
||||
[rightContainer addSubview:_renderScrollView];
|
||||
|
||||
// 3. System Menü aufbauen
|
||||
var mainMenu = [CPApp mainMenu];
|
||||
while ([mainMenu numberOfItems] > 0)
|
||||
[mainMenu removeItemAtIndex:0];
|
||||
|
||||
var item = [mainMenu insertItemWithTitle:@"Edit" action:nil keyEquivalent:nil atIndex:0],
|
||||
editMenu = [[CPMenu alloc] initWithTitle:@"Edit Menu"];
|
||||
|
||||
[editMenu addItemWithTitle:@"Cut" action:@selector(cut:) keyEquivalent:@"x"];
|
||||
[editMenu addItemWithTitle:@"Copy" action:@selector(copy:) keyEquivalent:@"c"];
|
||||
[editMenu addItemWithTitle:@"Paste" action:@selector(paste:) keyEquivalent:@"v"];
|
||||
[editMenu addItemWithTitle:@"Select All" action:@selector(selectAll:) keyEquivalent:@"a"];
|
||||
[mainMenu setSubmenu:editMenu forItem:item];
|
||||
|
||||
[theWindow orderFront:self];
|
||||
[CPMenu setMenuBarVisible:YES];
|
||||
|
||||
// 4. Default-Startup-Markdown mit Ihrem Buchungsbeispiel (inkl. geschützten Trennzeichen und Emojis)
|
||||
var startupMarkdown = @"**Aufenthalts\u2011Daten Ihrer Pierre\u202f&\u202fVacances\u2011Reservation (Rechnungs\u2011Nr\u202f23651325)** \n\n" +
|
||||
@"| \uD83D\uDCC5\u202fCheck\u2011in\u2011Datum | \uD83D\uDCC5\u202fCheck\u2011out\u2011Datum | \uD83D\uDD22\u202fN\u00e4chte | \uD83C\uDFE0\u202fUnterkunft | \uD83D\uDCCD\u202fAdresse | \uD83D\uDC65\u202fG\u00e4ste (Erwachsene\u202f/\u202fKinder) | \u23f0\u202fAnkunftszeit | \u23f0\u202fAbreisezeit | \uD83D\uDCDD\u202fBemerkung |\n" +
|
||||
@"|-------------------|--------------------|-----------|--------------|------------|-------------------------------|----------------|----------------|-------------|\n" +
|
||||
@"| 27.\u202fMai\u202f2026 | 03.\u202fJuni\u202f2026 | 7 | **Les\u202fVillas\u202fd\u2019Olonne** \u2013 Premium\u2011Villas | 19\u202fRoute\u202fdes\u202fAmis\u202fde\u202fla\u202fNature, 85340\u202fLes\u202fSables\u2011de\u2011L\u2011Olonne | 2\u202fErwachsene\u202f/\u202f1\u202fKind | 17:00\u202f\u2013\u202f17:30 (je nach Vereinbarung) | 10:00\u202f\u2013\u202f10:30 (Fr\u00fchst\u00fcck inklusive) | Hotel\u2011Check\u2011in erfolgt in der Rezeption; Schl\u00fcssel werden bei Ankunft \u00fcbergeben. |\n" +
|
||||
@"| | | | **Haus\u2011und\u2011Sammelbecken** | | | | | |\n" +
|
||||
@"| **Hinweis** | | | | | | | | |\n\n" +
|
||||
@"> **Kurz\u00fcbersicht** \n" +
|
||||
@"> \u2022 7\u202fN\u00e4chte von 27\u202fMai bis 3\u202fJuni 2026 \n" +
|
||||
@"> \u2022 2\u202fErwachsene und 1\u202fKind \n" +
|
||||
@"> \u2022 Check\u2011in um 17:00\u202f\u2013\u202f17:30 Uhr, Check\u2011out um 10:00\u202f\u2013\u202f10:30 Uhr \n" +
|
||||
@"> \u2022 Unterkunft: Premium\u2011Villas \u201eLes\u202fVillas\u202fd\u2019Olonne\u201c an der Adresse 19\u202fRoute\u202fdes\u202fAmis\u202fde\u202fla\u202fNature, 85340\u202fLes\u202fSables\u2011de\u2011L\u2011Olonne \n\n" +
|
||||
@"Falls Sie noch weitere Details ben\u00f6tigen (z.\u202fB.\u202fZahlungsbedingungen, Rezeption\u2011Kontaktdaten, Reiseziel\u2011Informationen), lassen Sie es mich einfach wissen!";
|
||||
|
||||
[_markdownInputTextView setString:startupMarkdown];
|
||||
[self renderMarkdown];
|
||||
}
|
||||
|
||||
- (void)textDidChange:(CPNotification)aNotification
|
||||
{
|
||||
[self renderMarkdown];
|
||||
}
|
||||
|
||||
- (void)splitViewDidResizeSubviews:(CPNotification)aNotification
|
||||
{
|
||||
[self renderMarkdown];
|
||||
}
|
||||
|
||||
- (void)renderMarkdownAction:(id)sender
|
||||
{
|
||||
[self renderMarkdown];
|
||||
}
|
||||
|
||||
- (void)clearAction:(id)sender
|
||||
{
|
||||
[_markdownInputTextView setString:@""];
|
||||
[self renderMarkdown];
|
||||
}
|
||||
|
||||
- (void)renderMarkdown
|
||||
{
|
||||
var rawText = [_markdownInputTextView string];
|
||||
|
||||
if (!rawText) rawText = @"";
|
||||
|
||||
var parsedAttrStr = [CPMarkdownParser attributedStringFromMarkdown:rawText];
|
||||
[_markdownRenderTextView setString:parsedAttrStr];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CPApplicationDelegateClass</key>
|
||||
<string>AppController</string>
|
||||
<key>CPBundleName</key>
|
||||
<string>CPTextViewTest</string>
|
||||
<key>CPPrincipalClass</key>
|
||||
<string>CPApplication</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Jakefile
|
||||
* CPLevelIndicator
|
||||
*
|
||||
* Created by Alexander Ljungberg on May 28, 2011.
|
||||
* Copyright 2011, WireLoad All rights reserved.
|
||||
*/
|
||||
|
||||
var ENV = require("system").env,
|
||||
FILE = require("file"),
|
||||
JAKE = require("jake"),
|
||||
task = JAKE.task,
|
||||
FileList = JAKE.FileList,
|
||||
app = require("cappuccino/jake").app,
|
||||
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug",
|
||||
OS = require("os");
|
||||
|
||||
app ("CPLevelIndicator", function(task)
|
||||
{
|
||||
task.setBuildIntermediatesPath(FILE.join("Build", "CPLevelIndicator.build", configuration));
|
||||
task.setBuildPath(FILE.join("Build", configuration));
|
||||
|
||||
task.setProductName("CPLevelIndicator");
|
||||
task.setIdentifier("com.yourcompany.CPLevelIndicator");
|
||||
task.setVersion("1.0");
|
||||
task.setAuthor("WireLoad");
|
||||
task.setEmail("feedback @nospam@ yourcompany.com");
|
||||
task.setSummary("CPLevelIndicator");
|
||||
task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**")));
|
||||
task.setResources(new FileList("Resources/**"));
|
||||
task.setIndexFilePath("index.html");
|
||||
task.setInfoPlistPath("Info.plist");
|
||||
task.setNib2CibFlags("-R Resources/");
|
||||
|
||||
if (configuration === "Debug")
|
||||
task.setCompilerFlags("-DDEBUG -g");
|
||||
else
|
||||
task.setCompilerFlags("-O");
|
||||
});
|
||||
|
||||
task ("default", ["CPLevelIndicator"], function()
|
||||
{
|
||||
printResults(configuration);
|
||||
});
|
||||
|
||||
task ("build", ["default"]);
|
||||
|
||||
task ("debug", function()
|
||||
{
|
||||
ENV["CONFIGURATION"] = "Debug";
|
||||
JAKE.subjake(["."], "build", ENV);
|
||||
});
|
||||
|
||||
task ("release", function()
|
||||
{
|
||||
ENV["CONFIGURATION"] = "Release";
|
||||
JAKE.subjake(["."], "build", ENV);
|
||||
});
|
||||
|
||||
task ("run", ["debug"], function()
|
||||
{
|
||||
OS.system(["open", FILE.join("Build", "Debug", "CPLevelIndicator", "index.html")]);
|
||||
});
|
||||
|
||||
task ("run-release", ["release"], function()
|
||||
{
|
||||
OS.system(["open", FILE.join("Build", "Release", "CPLevelIndicator", "index.html")]);
|
||||
});
|
||||
|
||||
task ("deploy", ["release"], function()
|
||||
{
|
||||
FILE.mkdirs(FILE.join("Build", "Deployment", "CPLevelIndicator"));
|
||||
OS.system(["press", "-f", FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Deployment", "CPLevelIndicator")]);
|
||||
printResults("Deployment")
|
||||
});
|
||||
|
||||
task ("desktop", ["release"], function()
|
||||
{
|
||||
FILE.mkdirs(FILE.join("Build", "Desktop", "CPLevelIndicator"));
|
||||
require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPLevelIndicator"), FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app"));
|
||||
printResults("Desktop")
|
||||
});
|
||||
|
||||
task ("run-desktop", ["desktop"], function()
|
||||
{
|
||||
OS.system([FILE.join("Build", "Desktop", "CPLevelIndicator", "CPLevelIndicator.app", "Contents", "MacOS", "NativeHost"), "-i"]);
|
||||
});
|
||||
|
||||
function printResults(configuration)
|
||||
{
|
||||
print("----------------------------");
|
||||
print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPLevelIndicator"));
|
||||
print("----------------------------");
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,103 @@
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!--
|
||||
index-debug.html
|
||||
CPLevelIndicator
|
||||
|
||||
Created by Alexander Ljungberg on May 28, 2011.
|
||||
Copyright 2011, WireLoad All rights reserved.
|
||||
-->
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, chrome=1" />
|
||||
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
|
||||
<link rel="apple-touch-icon" href="Resources/icon.png" />
|
||||
<link rel="apple-touch-startup-image" href="Resources/default.png" />
|
||||
|
||||
<title>CPLevelIndicator</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
OBJJ_MAIN_FILE = "main.j";
|
||||
OBJJ_INCLUDE_PATHS = ["Frameworks/Debug", "Frameworks", "SomethingElse"];
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="Frameworks/Debug/Objective-J/Objective-J.js" charset="UTF-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
objj_msgSend_reset();
|
||||
|
||||
// DEBUG OPTIONS:
|
||||
|
||||
// Uncomment to enable printing of backtraces on exceptions:
|
||||
//objj_msgSend_decorate(objj_backtrace_decorator);
|
||||
|
||||
// Uncomment to supress exceptions that take place inside a message
|
||||
//objj_msgSend_decorate(objj_supress_exceptions_decorator)
|
||||
|
||||
// Uncomment to enable runtime type checking:
|
||||
//objj_msgSend_decorate(objj_typecheck_decorator);
|
||||
|
||||
// Uncomment (along with both above) to print backtraces on type check errors:
|
||||
//objj_typecheck_prints_backtrace = true;
|
||||
|
||||
// Uncomment to disable the default logger (CPLogConsole if window.console exists, CPLogPopup otherwise):
|
||||
//CPLogUnregister(CPLogDefault);
|
||||
|
||||
// Uncomment to enable a specific logger:
|
||||
//CPLogRegister(CPLogConsole);
|
||||
//CPLogRegister(CPLogPopup);
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
body{margin:0; padding:0;}
|
||||
#container {position: absolute; top:50%; left:50%;}
|
||||
#content {width:800px; text-align:center; margin-left: -400px; height:50px; margin-top:-25px; line-height: 50px;}
|
||||
#content {font-family: "Helvetica", "Arial", sans-serif; font-size: 18px; color: black; text-shadow: 0px 1px 0px white; }
|
||||
#loadgraphic {margin-right: 0.2em; margin-bottom:-2px;}
|
||||
</style>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<STYLE type="text/css">
|
||||
#container { position: relative; top: 50%; }
|
||||
#content { position: relative;}
|
||||
</STYLE>
|
||||
<![endif]-->
|
||||
|
||||
</head>
|
||||
|
||||
<body style="">
|
||||
<div id="cappuccino-body">
|
||||
<div id="loadingcontainer" style="background-color: #eeeeee; overflow:hidden; width:100%; height:100%; position: absolute; top: 0; left: 0;">
|
||||
<script type="text/javascript">
|
||||
document.write("<div id='container'><p id='content'>" +
|
||||
"<img id='loadgraphic' width='16' height='16' src='Resources/spinner.gif' /> " +
|
||||
"Loading CPLevelIndicator...</p></div>");
|
||||
</script>
|
||||
|
||||
<noscript>
|
||||
<div id="container">
|
||||
<div style="width: 440px; padding: 10px 25px 20px 25px; font-family: sans-serif; background-color: #ffffff; position: relative; left: -245px; top: -120px; text-align: center; -moz-border-radius: 20px; -webkit-border-radius: 20px; color: #555555">
|
||||
<p style="line-height: 1.4em;">JavaScript is required for this site to work correctly but is either disabled or not supported by your browser.</p>
|
||||
<p style="font-size:120%; padding:10px;"><a href="http://cappuccino-project.org/noscript">Show me how to enable JavaScript</a></p>
|
||||
<p style="font-size:80%;">You may want to upgrade to a newer browser while you're at it:</p>
|
||||
<ul style="margin:0;padding:0; text-align: center; font-size:80%;" >
|
||||
<li style="display: inline;"><a href="http://www.apple.com/safari/download/">Safari</a></li>
|
||||
<li style="display: inline;"><a href="http://www.mozilla.com/en-US/firefox/">Firefox</a></li>
|
||||
<li style="display: inline;"><a href="http://www.google.com/chrome/">Chrome</a></li>
|
||||
<li style="display: inline;"><a href="http://www.opera.com/download/">Opera</a></li>
|
||||
<li style="display: inline;"><a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">Internet Explorer</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,167 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<!--
|
||||
index.html
|
||||
__project.name__
|
||||
|
||||
Created by __user.name__ on __project.date__.
|
||||
Copyright __project.year__, __organization.name__ All rights reserved.
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<!--[if lte IE 8]>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, chrome=1">
|
||||
<![endif]-->
|
||||
<!--[if gte IE 9]>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<![endif]-->
|
||||
|
||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
|
||||
<link rel="apple-touch-icon" href="Resources/icon.png">
|
||||
<link rel="apple-touch-startup-image" href="Resources/default.png">
|
||||
|
||||
<title>__project.name__</title>
|
||||
|
||||
<!-- Custom javascript goes here -->
|
||||
<!-- End custom javascript -->
|
||||
|
||||
<script type="text/javascript">
|
||||
OBJJ_INCLUDE_PATHS = ["../../Frameworks"];
|
||||
OBJJ_MAIN_FILE = "main.j";
|
||||
// The below will tell the compiler to not generate debug symbols but will generate type signatures and inline objj_msgSend functions.
|
||||
// This will affect only Objective-J code that is compiled when loading the application. It will not affect precompiled
|
||||
// code like the Cappuccino frameworks.
|
||||
// Uncomment or comment on the line below to change the flags
|
||||
OBJJ_COMPILER_FLAGS = ["IncludeDebugSymbols", "IncludeTypeSignatures", "SourceMap", "InlineMsgSend"];
|
||||
|
||||
var progressBar = null;
|
||||
|
||||
OBJJ_PROGRESS_CALLBACK = function(percent, appSize, path)
|
||||
{
|
||||
percent = percent * 100;
|
||||
|
||||
if (!progressBar)
|
||||
progressBar = document.getElementById("progress-bar");
|
||||
|
||||
if (progressBar)
|
||||
progressBar.style.width = Math.min(percent, 100) + "%";
|
||||
}
|
||||
|
||||
var loadingHTML =
|
||||
'<div id="loading">' +
|
||||
' <div id="loading-text">Loading...</div>' +
|
||||
' <div id="progress-indicator">' +
|
||||
' <span id="progress-bar" style="width:0%"></span>' +
|
||||
' </div>' +
|
||||
'</div>';
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../Frameworks/Objective-J/Objective-J.js" charset="UTF-8"></script>
|
||||
|
||||
<style type="text/css">
|
||||
html, body, h1, p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* We need a body wrapper because Cappuccino is unhappy if we change the body element */
|
||||
#cappuccino-body {
|
||||
/* Position it absolutely so it will fill the height without content */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
|
||||
/* Put it at the bottom of the stack so it doesn't interfere with UI */
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
#cappuccino-body .container {
|
||||
display: table;
|
||||
margin: 0 auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#cappuccino-body .content {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#loading {
|
||||
position: relative;
|
||||
top: 35%;
|
||||
}
|
||||
|
||||
#loading-text {
|
||||
height: 1.5em;
|
||||
color: #555;
|
||||
font: normal bold 36px/36px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#progress-indicator {
|
||||
padding: 0px;
|
||||
height: 16px;
|
||||
border: 5px solid #555;
|
||||
border-radius: 18px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#progress-bar {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
left: -1px;
|
||||
display: block;
|
||||
height: 18px;
|
||||
|
||||
/* Compensate for moving the bar left 1px to overlap the indicator border */
|
||||
border-right: 1px solid #555;
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
#noscript {
|
||||
position: relative;
|
||||
top: 35%;
|
||||
padding: 1em 1.5em;
|
||||
border: 5px solid #555;
|
||||
border-radius: 16px;
|
||||
background-color: white;
|
||||
color: #555;
|
||||
text-align: center;
|
||||
font: bold 24px Arial, sans-serif;
|
||||
}
|
||||
|
||||
#noscript a {
|
||||
color: #98c0ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="cappuccino-body">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<script type="text/javascript">
|
||||
document.write(loadingHTML);
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<noscript style="position:absolute; top:0; left:0; width:100%; height:100%">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<div id="noscript">
|
||||
<p style="font-size:120%; margin-bottom:.75em">JavaScript is required for this application.</p>
|
||||
<p><a href="http://www.enable-javascript.com" target="_blank">Enable JavaScript</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* AppController.j
|
||||
* CPLevelIndicator
|
||||
*
|
||||
*/
|
||||
|
||||
@import <Foundation/Foundation.j>
|
||||
@import <AppKit/AppKit.j>
|
||||
|
||||
@import "AppController.j"
|
||||
|
||||
|
||||
function main(args, namedArgs)
|
||||
{
|
||||
CPApplicationMain(args, namedArgs);
|
||||
}
|
||||
+147
-146
@@ -1,146 +1,147 @@
|
||||
1783557503101|ArrayController1|
|
||||
1783557503116|ArrayControllerInitialSelectionTest|
|
||||
1783557503129|ArrayControllerRemovingFirstTest|
|
||||
1783557503143|AttachedSheet|
|
||||
1783557503156|AttachedSheet2|
|
||||
1783557503170|Bindings|
|
||||
1783557503184|CGCanvasContext|
|
||||
1783557503197|CGPath|
|
||||
1783557503211|CPAlertTest|
|
||||
1783557503225|CPAnimatablePropertyContainerTest|
|
||||
1783557503238|CPAnimationContextTest|
|
||||
1783557503252|CPAnimationTest|
|
||||
1783557503266|CPBinder-echo-bug|
|
||||
1783557503280|CPBoxCibTest|
|
||||
1783557503293|CPBoxTest|
|
||||
1783557503307|CPBrowserTest|
|
||||
1783557503320|CPButtonBarTest|
|
||||
1783557503334|CPButtonKeyEquivalentDefaultTest|
|
||||
1783557503347|CPButtonTest|
|
||||
1783557503361|CPByteCountFormatter|
|
||||
1783557503375|CPCollectionViewNibTest|
|
||||
1783557503389|CPColor-CPImage-description|
|
||||
1783557503403|CPColorWellBindings|
|
||||
1783557503416|CPComboBoxTest|
|
||||
1783557503430|CPControlPerformClickExceptionTest|
|
||||
1783557503444|CPControlSize|
|
||||
1783557503457|CPCursor|
|
||||
1783557503471|CPDateFormatterTest|
|
||||
1783557503485|CPDatePickerTest|
|
||||
1783557503499|CPDictionaryControllerTest|
|
||||
1783557503512|CPDocumentControllerTest|
|
||||
1783557503526|CPFormatterTest|
|
||||
1783557503540|CPGraphicsTest|
|
||||
1783557503554|CPImageAndTextViewImageScaling|
|
||||
1783557503568|CPImageViewAlignmentScaling|
|
||||
1783557503581|CPImageViewTest|
|
||||
1783557503595|CPImageViewbindingsTest|
|
||||
1783557503609|CPLevelIndicator|
|
||||
1783557503623|CPLocalizationTest|
|
||||
1783557503637|CPLogTest|
|
||||
1783557503650|CPMenuCALayerTest|
|
||||
1783557503664|CPMenuEnabledBindingsTest|
|
||||
1783557503678|CPMenuKeyEquivalents|
|
||||
1783557503691|CPMenuRemoveAllTest|
|
||||
1783557503705|CPMenuSubmenuPlacementConstraints|
|
||||
1783557503719|CPMenuTest|
|
||||
1783557503732|CPOutlineViewCibTest|
|
||||
1783557503746|CPOutlineViewTest|
|
||||
1783557503760|CPOutlineViewViewBasedCibTest|
|
||||
1783557503773|CPPanelTest|
|
||||
1783557503787|CPPlatformWindow|
|
||||
1783557503801|CPPlattformWindowMinSize|
|
||||
1783557503814|CPPopUpButtonBindings|
|
||||
1783557503828|CPPopUpButtonTest|
|
||||
1783557503842|CPPopover|
|
||||
1783557503855|CPPredicateEditorCibTest|
|
||||
1783557503869|CPProgressIndicator|
|
||||
1783557503883|CPPropertyListSerializationTest|
|
||||
1783557503896|CPRadioBindings|
|
||||
1783557503910|CPRuleEditorCibTest|
|
||||
1783557503923|CPRuleEditorTestI8N|
|
||||
1783557503937|CPScrollView|
|
||||
1783557503950|CPScrollView2|
|
||||
1783557503964|CPSearchField|
|
||||
1783557503977|CPSearchFieldPredicateBinding|
|
||||
1783557503991|CPSegmentedControlBindings|
|
||||
1783557504005|CPSegmentedControlTest|
|
||||
1783557504018|CPSoundTest|
|
||||
1783557504031|CPSplitViewDivider|
|
||||
1783557504045|CPSplitViewTest|
|
||||
1783557504058|CPStackViewTest|
|
||||
1783557504072|CPStepperBindings|
|
||||
1783557504086|CPStepperNibTest|
|
||||
1783557504100|CPTabView2|
|
||||
1783557504113|CPTabViewBindings|
|
||||
1783557504127|CPTabViewNib|
|
||||
1783557504140|CPTableViewGroupRows|
|
||||
1783557504154|CPTextField|
|
||||
1783557504167|CPTextFieldEditingStyleTest|
|
||||
1783557504180|CPTextFieldHeightTest|
|
||||
1783557504194|CPTextFieldMovementsTest|
|
||||
1783557504208|CPTextFieldMultiline|
|
||||
1783557504221|CPTextView|
|
||||
1783557504235|CPTextViewCibTest|
|
||||
1783557504248|CPTextViewDelegateAndNotifications|
|
||||
1783557504262|CPTimeZone|
|
||||
1783557504275|CPTokenFieldTest|
|
||||
1783557504289|CPToolTip|
|
||||
1783557504302|CPToolbarTest|
|
||||
1783557504316|CPTreeControllerTest|
|
||||
1783557504330|CPURLConnectionAsyncTest|
|
||||
1783557504343|CPURLConnectionSynchronousTest|
|
||||
1783557504356|CPUserDefaults|
|
||||
1783557504370|CPUserDefaultsControllerTest|
|
||||
1783557504384|CPUserNotificationTest|
|
||||
1783557504397|CPViewController|
|
||||
1783557504410|CPVisualEffectViewTest|
|
||||
1783557504424|CPWebViewTest|
|
||||
1783557504437|CPWebViewTest2|
|
||||
1783557504450|CPWindowLiveResizeTest|
|
||||
1783557504464|CPWindowMovableTest|
|
||||
1783557504477|CPWindowResizeStyle|
|
||||
1783557504491|ChildWindows|
|
||||
1783557504504|CompilationTests|
|
||||
1783557504518|ContinuouslyUpdatesValueBinding|
|
||||
1783557504532|CopyAndPaste|
|
||||
1783557504545|CrossOriginTest|
|
||||
1783557504559|FF4096Test|
|
||||
1783557504572|FontEnhancementTest|
|
||||
1783557504586|FontMetricsExplorer|
|
||||
1783557504600|KeyEquivalents|
|
||||
1783557504613|KeyViewLoopTest|
|
||||
1783557504627|KeyWindowInTheBackgroundActivation|
|
||||
1783557504640|LayoutTest|
|
||||
1783557504654|LoadTimeTest|
|
||||
1783557504667|LongBindings|
|
||||
1783557504681|MobileTest|
|
||||
1783557504694|MultipleValueBindings|
|
||||
1783557504708|NSBoxTest|
|
||||
1783557504722|NSBrowserTest|
|
||||
1783557504735|NewTextFieldBezel|
|
||||
1783557504749|Nib2CibAlignment|
|
||||
1783557504763|Nib2CibBaselineAlignementTest|
|
||||
1783557504777|Nib2CibSubviewsOrderTest|
|
||||
1783557504790|NibAppRemixed|
|
||||
1783557504803|PatternFillTest|
|
||||
1783557504817|PlatformWindows|
|
||||
1783557504831|PopUpButtonEscTest|
|
||||
1783557504844|ScalingTest|
|
||||
1783557504858|ScalingTest2|
|
||||
1783557504872|ScrollviewTheming|
|
||||
1783557504886|SheetWindowOrderFrontIssue|
|
||||
1783557504899|SimpleBindings2|
|
||||
1783557504913|SmartFoldersDemo|
|
||||
1783557504927|TableTest|
|
||||
1783557504940|ThemeBrowser|
|
||||
1783557504954|ThemeKitchenSink|
|
||||
1783557504967|TrackingArea|
|
||||
1783557504981|UndoRedoWithMenuUpdate|
|
||||
1783557504994|UserlandNSTest|
|
||||
1783557505008|layoutEphemeralSubviewTest|
|
||||
1783557505022|loadDynamicFrameworks|
|
||||
1783557505035|performKeyEquivalentTest|
|
||||
1783557505049|predicateWithFormat|
|
||||
1783557505063|resignFirstResponder-CPControlTextDidEndEditing|
|
||||
1783557505077|sizeToFitFix|
|
||||
1783770744336|ArrayController1|
|
||||
1783770744350|ArrayControllerInitialSelectionTest|
|
||||
1783770744364|ArrayControllerRemovingFirstTest|
|
||||
1783770744377|AttachedSheet|
|
||||
1783770744391|AttachedSheet2|
|
||||
1783770744404|Bindings|
|
||||
1783770744418|CGCanvasContext|
|
||||
1783770744431|CGPath|
|
||||
1783770744445|CPAlertTest|
|
||||
1783770744458|CPAnimatablePropertyContainerTest|
|
||||
1783770744472|CPAnimationContextTest|
|
||||
1783770744486|CPAnimationTest|
|
||||
1783770744499|CPBinder-echo-bug|
|
||||
1783770744513|CPBoxCibTest|
|
||||
1783770744526|CPBoxTest|
|
||||
1783770744540|CPBrowserTest|
|
||||
1783770744553|CPButtonBarTest|
|
||||
1783770744567|CPButtonKeyEquivalentDefaultTest|
|
||||
1783770744580|CPButtonTest|
|
||||
1783770744594|CPByteCountFormatter|
|
||||
1783770744607|CPCollectionViewNibTest|
|
||||
1783770744621|CPColor-CPImage-description|
|
||||
1783770744634|CPColorWellBindings|
|
||||
1783770744648|CPComboBoxTest|
|
||||
1783770744661|CPControlPerformClickExceptionTest|
|
||||
1783770744675|CPControlSize|
|
||||
1783770744688|CPCursor|
|
||||
1783770744702|CPDateFormatterTest|
|
||||
1783770744715|CPDatePickerTest|
|
||||
1783770744729|CPDictionaryControllerTest|
|
||||
1783770744742|CPDocumentControllerTest|
|
||||
1783770744756|CPFormatterTest|
|
||||
1783770744769|CPGraphicsTest|
|
||||
1783770744783|CPImageAndTextViewImageScaling|
|
||||
1783770744796|CPImageViewAlignmentScaling|
|
||||
1783770744810|CPImageViewTest|
|
||||
1783770744823|CPImageViewbindingsTest|
|
||||
1783770744837|CPLevelIndicator|
|
||||
1783770744850|CPLocalizationTest|
|
||||
1783770744864|CPLogTest|
|
||||
1783770744877|CPMarkdownParser|
|
||||
1783770744891|CPMenuCALayerTest|
|
||||
1783770744904|CPMenuEnabledBindingsTest|
|
||||
1783770744918|CPMenuKeyEquivalents|
|
||||
1783770744932|CPMenuRemoveAllTest|
|
||||
1783770744945|CPMenuSubmenuPlacementConstraints|
|
||||
1783770744959|CPMenuTest|
|
||||
1783770744972|CPOutlineViewCibTest|
|
||||
1783770744986|CPOutlineViewTest|
|
||||
1783770745000|CPOutlineViewViewBasedCibTest|
|
||||
1783770745013|CPPanelTest|
|
||||
1783770745027|CPPlatformWindow|
|
||||
1783770745041|CPPlattformWindowMinSize|
|
||||
1783770745054|CPPopUpButtonBindings|
|
||||
1783770745068|CPPopUpButtonTest|
|
||||
1783770745081|CPPopover|
|
||||
1783770745095|CPPredicateEditorCibTest|
|
||||
1783770745109|CPProgressIndicator|
|
||||
1783770745122|CPPropertyListSerializationTest|
|
||||
1783770745136|CPRadioBindings|
|
||||
1783770745149|CPRuleEditorCibTest|
|
||||
1783770745163|CPRuleEditorTestI8N|
|
||||
1783770745177|CPScrollView|
|
||||
1783770745190|CPScrollView2|
|
||||
1783770745204|CPSearchField|
|
||||
1783770745217|CPSearchFieldPredicateBinding|
|
||||
1783770745231|CPSegmentedControlBindings|
|
||||
1783770745245|CPSegmentedControlTest|
|
||||
1783770745258|CPSoundTest|
|
||||
1783770745272|CPSplitViewDivider|
|
||||
1783770745285|CPSplitViewTest|
|
||||
1783770745299|CPStackViewTest|
|
||||
1783770745312|CPStepperBindings|
|
||||
1783770745326|CPStepperNibTest|
|
||||
1783770745339|CPTabView2|
|
||||
1783770745353|CPTabViewBindings|
|
||||
1783770745366|CPTabViewNib|
|
||||
1783770745380|CPTableViewGroupRows|
|
||||
1783770745393|CPTextField|
|
||||
1783770745407|CPTextFieldEditingStyleTest|
|
||||
1783770745420|CPTextFieldHeightTest|
|
||||
1783770745434|CPTextFieldMovementsTest|
|
||||
1783770745447|CPTextFieldMultiline|
|
||||
1783770745461|CPTextView|
|
||||
1783770745475|CPTextViewCibTest|
|
||||
1783770745488|CPTextViewDelegateAndNotifications|
|
||||
1783770745502|CPTimeZone|
|
||||
1783770745515|CPTokenFieldTest|
|
||||
1783770745529|CPToolTip|
|
||||
1783770745542|CPToolbarTest|
|
||||
1783770745556|CPTreeControllerTest|
|
||||
1783770745570|CPURLConnectionAsyncTest|
|
||||
1783770745583|CPURLConnectionSynchronousTest|
|
||||
1783770745597|CPUserDefaults|
|
||||
1783770745610|CPUserDefaultsControllerTest|
|
||||
1783770745624|CPUserNotificationTest|
|
||||
1783770745637|CPViewController|
|
||||
1783770745651|CPVisualEffectViewTest|
|
||||
1783770745664|CPWebViewTest|
|
||||
1783770745678|CPWebViewTest2|
|
||||
1783770745692|CPWindowLiveResizeTest|
|
||||
1783770745705|CPWindowMovableTest|
|
||||
1783770745719|CPWindowResizeStyle|
|
||||
1783770745732|ChildWindows|
|
||||
1783770745746|CompilationTests|
|
||||
1783770745760|ContinuouslyUpdatesValueBinding|
|
||||
1783770745773|CopyAndPaste|
|
||||
1783770745787|CrossOriginTest|
|
||||
1783770745800|FF4096Test|
|
||||
1783770745814|FontEnhancementTest|
|
||||
1783770745827|FontMetricsExplorer|
|
||||
1783770745841|KeyEquivalents|
|
||||
1783770745854|KeyViewLoopTest|
|
||||
1783770745868|KeyWindowInTheBackgroundActivation|
|
||||
1783770745882|LayoutTest|
|
||||
1783770745895|LoadTimeTest|
|
||||
1783770745909|LongBindings|
|
||||
1783770745922|MobileTest|
|
||||
1783770745936|MultipleValueBindings|
|
||||
1783770745949|NSBoxTest|
|
||||
1783770745963|NSBrowserTest|
|
||||
1783770745976|NewTextFieldBezel|
|
||||
1783770745990|Nib2CibAlignment|
|
||||
1783770746004|Nib2CibBaselineAlignementTest|
|
||||
1783770746017|Nib2CibSubviewsOrderTest|
|
||||
1783770746031|NibAppRemixed|
|
||||
1783770746044|PatternFillTest|
|
||||
1783770746058|PlatformWindows|
|
||||
1783770746071|PopUpButtonEscTest|
|
||||
1783770746085|ScalingTest|
|
||||
1783770746099|ScalingTest2|
|
||||
1783770746112|ScrollviewTheming|
|
||||
1783770746126|SheetWindowOrderFrontIssue|
|
||||
1783770746139|SimpleBindings2|
|
||||
1783770746153|SmartFoldersDemo|
|
||||
1783770746166|TableTest|
|
||||
1783770746180|ThemeBrowser|
|
||||
1783770746193|ThemeKitchenSink|
|
||||
1783770746207|TrackingArea|
|
||||
1783770746220|UndoRedoWithMenuUpdate|
|
||||
1783770746234|UserlandNSTest|
|
||||
1783770746247|layoutEphemeralSubviewTest|
|
||||
1783770746261|loadDynamicFrameworks|
|
||||
1783770746274|performKeyEquivalentTest|
|
||||
1783770746288|predicateWithFormat|
|
||||
1783770746301|resignFirstResponder-CPControlTextDidEndEditing|
|
||||
1783770746315|sizeToFitFix|
|
||||
Reference in new issue
Block a user