This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tobias Lütke
committed
Jun 5, 2008
0 parents
commit cf989a6
Showing
528 changed files
with
39,396 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# No log or backup files should be recorded | ||
*.log | ||
rails_monitor.* | ||
*.orig | ||
|
||
# We ignore all subversion directories underneath test and vendor | ||
.svn | ||
vendor/*/.svn | ||
test/*/.svn | ||
|
||
|
||
# ignore generated docs | ||
doc/api* | ||
|
||
# ignore osx dsstore files | ||
.DS_Store | ||
|
||
# no compressed js/css files | ||
public/*/admin.* | ||
|
||
# no love for tmp files | ||
tmp/* | ||
|
||
# no local theme / product images either | ||
public/files | ||
private/files | ||
|
||
*.orig | ||
|
||
.dotest | ||
|
||
# ignore schema.rb -- update and restore from schema.versioned.rb when appropriate | ||
db/schema.rb | ||
|
||
# ignore backups | ||
db/backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
require 'rake/gempackagetask' | ||
require 'rake/contrib/rubyforgepublisher' | ||
require 'fileutils' | ||
require 'server/config/version' | ||
|
||
|
||
NAME = 'vision' | ||
FILE_ZIP = "#{NAME}-#{Vision.version}.zip" | ||
FILE_TGZ = "#{NAME}-#{Vision.version}.tgz" | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.name = NAME | ||
s.version = Vision.version | ||
s.has_rdoc = false | ||
s.files = Dir.glob('**/*', File::FNM_DOTMATCH).reject do |f| | ||
[ /\.$/, /^public/, /^exports/, /^misc/, /Rakefile$/, /\.log$/, /^pkg/, /\.svn/, /\~$/, /\/\._/, /\.DS/].any? {|regex| f =~ regex } | ||
end | ||
s.require_path = '.' | ||
s.summary = 'Shopify Design Server' | ||
s.author = "Tobias Luetke" | ||
s.email = "tobi@jadedpixel.com" | ||
end | ||
|
||
Rake::GemPackageTask.new(spec) do |p| | ||
p.gem_spec = spec | ||
p.need_tar = false | ||
p.need_zip = true | ||
end | ||
|
||
|
||
desc "Publish web page and all that jazz to shopify.com" | ||
task :publish => [:create_page, :copy_files] do | ||
system("rsync --delete --progress -arz pkg/html/ vision.shopify.com:/u/apps/vision/current/public/") | ||
end | ||
|
||
desc "Release web page and all that jazz to shopify.com" | ||
task :release => [:publish] | ||
task :deploy => [:publish] | ||
|
||
desc "Create page" | ||
task :create_page do | ||
require 'erb' | ||
puts "Releasing version #{Vision.version}" | ||
html = File.dirname(__FILE__) + '/pkg/html' | ||
public = File.dirname(__FILE__) + '/public' | ||
|
||
FileUtils.mkdir_p(html) | ||
FileUtils.mkdir_p(html + '/stylesheets') | ||
FileUtils.mkdir_p(html + '/images/corners') | ||
FileUtils.mkdir_p(html + '/media') | ||
FileUtils.mkdir_p(html + '/misc') | ||
|
||
@version = Vision.version | ||
@file_zip = FILE_ZIP | ||
#@file_tgz = FILE_TGZ | ||
|
||
file_list = Dir.glob('public/**/*') | ||
|
||
file_list.reject! do |f| | ||
[ /\.$/, /\.svn/, /\.DS/].any? {|regex| f =~ regex } | ||
end | ||
|
||
file_list.each do |f| | ||
next if File.directory?(f) | ||
|
||
f['public/'] = '' | ||
|
||
if ['.xml', '.html'].include?(File.extname(f)) | ||
tmpl = ERB.new(File.read("#{public}/#{f}")) | ||
File.open( "#{html}/#{f}", 'w+') do |fp| | ||
fp << tmpl.result(binding) | ||
end | ||
else | ||
|
||
FileUtils.cp("#{public}/#{f}", "#{html}/#{f}") | ||
|
||
end | ||
|
||
|
||
end | ||
|
||
|
||
end | ||
|
||
task :copy_files => [:package] do | ||
html = 'pkg/html/files' | ||
FileUtils.mkdir_p(html) | ||
|
||
FileUtils.cp("pkg/#{FILE_ZIP}", "pkg/html/files") | ||
#FileUtils.cp("pkg/#{FILE_TGZ}", "pkg/html/files") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>Vision</string> | ||
<key>CFBundleExecutable</key> | ||
<string>Vision</string> | ||
<key>CFBundleGetInfoString</key> | ||
<string>Vision 1.0 Copyright 2006 Tobias Luetke</string> | ||
<key>CFBundleIconFile</key> | ||
<string>appIcon.icns</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.tobi.Vision</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>Vision</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>LSEnvironment</key> | ||
<dict> | ||
<key>APP_BUNDLER</key> | ||
<string>Platypus-3.2</string> | ||
</dict> | ||
<key>LSHasLocalizedDisplayName</key> | ||
<false/> | ||
<key>LSUIElement</key> | ||
<false/> | ||
<key>NSAppleScriptEnabled</key> | ||
<false/> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Vision 1.0 Copyright 2006 Tobias Luetke</string> | ||
<key>NSMainNibFile</key> | ||
<string>MainMenu</string> | ||
<key>NSPrincipalClass</key> | ||
<string>NSApplication</string> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPL???? |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Creator</key> | ||
<string>Platypus-3.2</string> | ||
<key>EncryptAndChecksum</key> | ||
<false/> | ||
<key>IsDroppable</key> | ||
<false/> | ||
<key>OutputType</key> | ||
<string>TextWindow</string> | ||
<key>RemainRunningAfterCompletion</key> | ||
<true/> | ||
<key>RequiresAdminPrivileges</key> | ||
<false/> | ||
<key>ScriptInterpreter</key> | ||
<string>/bin/bash</string> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CFBundleName = "Vision"; | ||
CFBundleShortVersionString = "1.0"; | ||
CFBundleGetInfoString = "Vision version 1.0 Copyright 2006 Tobias Luetke"; | ||
NSHumanReadableCopyright = "Copyright 2006 Tobias Luetke."; |
26 changes: 26 additions & 0 deletions
26
Vision.app/Contents/Resources/en.lproj/MainMenu.nib/classes.nib
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
Vision.app/Contents/Resources/en.lproj/MainMenu.nib/info.nib
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR="`dirname "$0"`" | ||
cd "$DIR/../../../" | ||
|
||
source ~/.profile &> /dev/null | ||
source ~/.bashrc &> /dev/null | ||
|
||
export PATH="/usr/local/bin:/opt/local/bin:/sw/local/bin:$PATH" | ||
RUBY="`which ruby`" | ||
|
||
if [[ -f "vision.rb" ]]; then | ||
echo "Vision coming up..." | ||
echo "=> `uname -sr` on `machine`" | ||
echo "=> using $RUBY" | ||
echo "=> `$RUBY -v`" | ||
else | ||
echo "=> Could not find vision.rb in same directory as Vision.app" | ||
echo "=> Please only use Vision.app when its in the original directory" | ||
exit 1 | ||
fi | ||
|
||
exec $RUBY vision.rb | ||
|
||
if [ 0 -ne $? ]; then | ||
echo "*** Please visit http://help.shopify.com/design/show/VisionTroubleshooting for further assistence" | ||
fi | ||
|
||
exit 0 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/ruby | ||
|
||
vision = File.dirname(__FILE__) + '/../../../vision.rb' | ||
|
||
if File.exists?(vision) | ||
require vision | ||
else | ||
puts " => Could not find vision.rb" | ||
puts " => Please copy Vision.app in the same directory as the vision.rb and the themes directory." | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
DIR=`dirname $0` | ||
cd "$DIR/../../../" | ||
|
||
if [[ -f "vision.rb" ]]; then | ||
RUBY=`/usr/bin/env which ruby` | ||
echo "Vision coming up..." | ||
echo "=> using $RUBY" | ||
$RUBY vision.rb | ||
else | ||
echo "=> Could not find vision.rb in same directory as Vision.app" | ||
echo "=> Please only use Vision.app when its in the original directory" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
puts 'Trying to start browser...' | ||
|
||
system('start http://localhost:3000') | ||
|
||
getc |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<resource> | ||
<ProjectParams | ||
Signature="/*@@ Generated by Wedit @@ */" | ||
WedVersion="11" | ||
DialogCount="0" | ||
ProjectName="vision" | ||
RcFile="C:\\Code\\C\\Vision\\vision.rc" | ||
IncludeFile="C:\\Code\\C\\Vision\\vision.h" | ||
CurrentDirectory="C:\\Code\\C\\Vision" | ||
CallbackFile="C:\\Code\\C\\Vision\\vision_cbk.c" | ||
GeneratedCFile="C:\\Code\\C\\Vision\\vision_gen.c" | ||
GlobalControlStyles="43476" | ||
NumberOfFonts="1" | ||
Font0="MS Sans Serif" | ||
/> | ||
<SYMBOLS> | ||
<SYMBOL | ||
Type="Container" | ||
ID_Define="IDICON100" | ||
ID-Value="100" | ||
/> | ||
</SYMBOLS> | ||
<ICON | ||
ID_Define="IDICON100" | ||
ID-Value="100" | ||
Filename="c:\code\c\vision\vision.ico" | ||
/> | ||
</resource> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* --- The following code comes from C:\Code\lcc\lib\wizard\textmode.tpl. */ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <windows.h> | ||
|
||
#define PROGNAME = 'Vision' | ||
|
||
int main(int argc,char *argv[]) | ||
{ | ||
printf("Vision coming up...\n"); | ||
system("server\\bin\\ruby.exe vision.rb"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Weditres generated include file. Do NOT edit */ | ||
#include <windows.h> | ||
#include <lfc.h> | ||
#define IDICON100 100 | ||
/*@ Prototypes @*/ | ||
#ifndef WEDIT_PROTOTYPES | ||
#define WEDIT_PROTOTYPES | ||
#endif | ||
void SetDlgBkColor(HWND,COLORREF); | ||
BOOL APIENTRY HandleCtlColor(UINT,DWORD); | ||
extern void *GetDialogArguments(HWND); | ||
extern char *GetDico(int,long); | ||
/*@@ End Prototypes @@*/ |
Oops, something went wrong.