3.0 source code
This commit is contained in:
30
OfficeWeb/vendor/requirejs/dist/Markdown-License.text
vendored
Normal file
30
OfficeWeb/vendor/requirejs/dist/Markdown-License.text
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
Copyright (c) 2004, John Gruber
|
||||
<http://daringfireball.net/>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name "Markdown" nor the names of its contributors may
|
||||
be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
This software is provided by the copyright holders and contributors "as
|
||||
is" and any express or implied warranties, including, but not limited
|
||||
to, the implied warranties of merchantability and fitness for a
|
||||
particular purpose are disclaimed. In no event shall the copyright owner
|
||||
or contributors be liable for any direct, indirect, incidental, special,
|
||||
exemplary, or consequential damages (including, but not limited to,
|
||||
procurement of substitute goods or services; loss of use, data, or
|
||||
profits; or business interruption) however caused and on any theory of
|
||||
liability, whether in contract, strict liability, or tort (including
|
||||
negligence or otherwise) arising in any way out of the use of this
|
||||
software, even if advised of the possibility of such damage.
|
||||
1450
OfficeWeb/vendor/requirejs/dist/Markdown.pl
vendored
Normal file
1450
OfficeWeb/vendor/requirejs/dist/Markdown.pl
vendored
Normal file
File diff suppressed because it is too large
Load Diff
70
OfficeWeb/vendor/requirejs/dist/README.md
vendored
Normal file
70
OfficeWeb/vendor/requirejs/dist/README.md
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
# RequireJS dist
|
||||
|
||||
This directory contains the tools that are used to build distributions of RequireJS and its web site.
|
||||
|
||||
When doing a release, do the following:
|
||||
|
||||
* Update files to the new version number:
|
||||
* require.js, both places
|
||||
* docs/download.md: check for nested paths too, add new release section
|
||||
* pre.html
|
||||
* post.html
|
||||
* Update version in x.js in the r.js project if necessary.
|
||||
* .updatesubs.sh
|
||||
* Check in changes to r.js project.
|
||||
* Check in changes to sample projects:
|
||||
* requirejs/example-jquery-cdn
|
||||
* requirejs/example-jquery-shim
|
||||
* requirejs/example-multipage
|
||||
* requirejs/example-multipage-shim
|
||||
* requirejs/example-libglobal
|
||||
* volojs/create-template
|
||||
* volojs/create-responsive-template
|
||||
|
||||
* Tag the requirejs and r.js trees:
|
||||
* git tag -am "Release 0.0.0" 0.0.0
|
||||
* git push --tags
|
||||
|
||||
* Commit changes to cajon, test
|
||||
* Rev cajon version
|
||||
* change package.json
|
||||
* tag it
|
||||
* Update the requirejs-npm directory
|
||||
* Update version in package.json
|
||||
* Modify bin/r.js to add: #!/usr/bin/env node
|
||||
* npm uninstall -g requirejs
|
||||
* npm install . -g
|
||||
* r.js -v
|
||||
* node (then use repl to do require("requirejs"))
|
||||
* Try a local install.
|
||||
* npm publish (in the requirejs-npm/requirejs directory)
|
||||
* Update requirejs-bower
|
||||
* tag the repo, with "latest" too.
|
||||
* git push
|
||||
* Update the requirejs-nuget directory (DO ON WINDOWS)
|
||||
* Update the require.js and r.js versions in content/Scripts using `volo add -nostamp -f`
|
||||
* Update Package.nuspec to rev version number.
|
||||
* NuGet.exe Pack Package.nuspec
|
||||
* NuGet.exe Push RequireJS.0.0.0.nupkg
|
||||
|
||||
Now pull down the tagged version to do a distribution, do this in git/ directory:
|
||||
|
||||
* rm -rf ./requirejs-dist ./requirejs-build
|
||||
* git clone git://github.com/jrburke/requirejs.git requirejs-dist
|
||||
* cd requirejs-dist
|
||||
* git checkout 0.0.0
|
||||
* cd dist
|
||||
|
||||
Run the distribution tasks.
|
||||
|
||||
To generate a build
|
||||
|
||||
* ./dist-build.sh 0.0.0
|
||||
|
||||
To generate the web site:
|
||||
|
||||
* node dist-site.js
|
||||
* cd dist-site
|
||||
* zip -r docs.zip ./*
|
||||
* mv docs.zip ../../../requirejs-build/
|
||||
|
||||
42
OfficeWeb/vendor/requirejs/dist/dist-build.sh
vendored
Normal file
42
OfficeWeb/vendor/requirejs/dist/dist-build.sh
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
#@license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||||
#Available via the MIT or new BSD license.
|
||||
#see: http://github.com/jrburke/requirejs for details
|
||||
|
||||
#version should be something like 0.9.0beta or 0.9.0
|
||||
version=$1
|
||||
if [ -z $version ]; then
|
||||
echo "Please pass in a version number"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
myDir=`cd \`dirname "$0"\`; pwd`
|
||||
|
||||
# First update the sub-projects with the latest.
|
||||
cd ..
|
||||
./updatesubs.sh
|
||||
cd dist
|
||||
|
||||
# Setup a build directory
|
||||
rm -rf ../../requirejs-build
|
||||
mkdir ../../requirejs-build
|
||||
|
||||
# Create the version output dir
|
||||
cd ../../requirejs-build
|
||||
mkdir $version
|
||||
mkdir $version/minified
|
||||
mkdir $version/comments
|
||||
|
||||
# Copy over the r.js file, and set up that project for a dist checkin.
|
||||
cp ../r.js/r.js $version/r.js
|
||||
cp ../r.js/r.js ../r.js/dist/r-$version.js
|
||||
|
||||
# Copy over basic script deliverables
|
||||
cp $myDir/../require.js $version/comments/require.js
|
||||
|
||||
# Minify any of the browser-based JS files
|
||||
cd $version/comments
|
||||
java -jar ../../../r.js/lib/closure/compiler.jar --js require.js --js_output_file ../minified/require.js
|
||||
|
||||
cd ../../../
|
||||
131
OfficeWeb/vendor/requirejs/dist/dist-site.js
vendored
Normal file
131
OfficeWeb/vendor/requirejs/dist/dist-site.js
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* @license RequireJS Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||||
* Available via the MIT or new BSD license.
|
||||
* see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
|
||||
/*
|
||||
To run this file:
|
||||
|
||||
> node dist-site.js
|
||||
|
||||
*/
|
||||
|
||||
/*jslint regexp: false, nomen: false, plusplus: false, strict: false */
|
||||
/*global require: false, console: false */
|
||||
|
||||
var files, htmlFile, transFile, fileContents,
|
||||
preContents, postContents, h1, homePath, cssPath,
|
||||
ieCssPath, jsPath, length, j, title,
|
||||
isTopPage = false,
|
||||
fileIndex = 0,
|
||||
h1RegExp = /<h1>([^<]+)<\/h1>/,
|
||||
file = require('./file'),
|
||||
child_process = require('child_process');
|
||||
|
||||
//Copy all the text files to a dist directory
|
||||
//file.deleteFile("./dist-site/");
|
||||
file.copyFile("init.js", "./dist-site/init.js");
|
||||
file.copyDir("fonts", "./dist-site/fonts", /\w/);
|
||||
file.copyFile("../index.html", "./dist-site/index.html");
|
||||
file.copyDir("../docs/", "./dist-site/docs/", /\w/);
|
||||
|
||||
preContents = file.readFile("pre.html");
|
||||
postContents = file.readFile("post.html");
|
||||
|
||||
//Convert each .html file to a full HTML file
|
||||
files = file.getFilteredFileList("./dist-site", /\.html$/, true);
|
||||
|
||||
function processFile() {
|
||||
htmlFile = files[fileIndex];
|
||||
fileIndex += 1;
|
||||
if (!htmlFile) {
|
||||
//Done processing files.
|
||||
return;
|
||||
}
|
||||
|
||||
transFile = htmlFile + '.trans';
|
||||
|
||||
console.log("Creating " + htmlFile);
|
||||
|
||||
//Do Markdown
|
||||
child_process.exec(
|
||||
"./Markdown.pl --html4tags " + htmlFile + " > " + transFile,
|
||||
function (error, stdout, stderr) {
|
||||
if (error) {
|
||||
console.log('Could not markdown ' + htmlFile);
|
||||
processFile();
|
||||
return;
|
||||
}
|
||||
|
||||
//Build up a complete HTML file.
|
||||
fileContents = file.readFile(transFile);
|
||||
|
||||
//Find the page title.
|
||||
title = h1RegExp.exec(fileContents);
|
||||
title = title && title[1];
|
||||
|
||||
fileContents = preContents + fileContents + postContents;
|
||||
|
||||
//Set the title of the HTML page
|
||||
h1 = fileContents.match(/<h1>([^<]+)<\/h1>/);
|
||||
if (h1 && h1[1]) {
|
||||
h1 = h1[1];
|
||||
} else {
|
||||
h1 = "";
|
||||
}
|
||||
|
||||
fileContents = fileContents.replace(/\$\{title\}/, h1);
|
||||
|
||||
//Change any .md references to .html references, and remove tree/master
|
||||
//links
|
||||
fileContents = fileContents
|
||||
.replace(/href="requirejs\/tree\/master\/docs\//g, 'href="docs/')
|
||||
.replace(/href="([^"]+)\.md/g, 'href="$1.html');
|
||||
|
||||
//Adjust the path the home and main.css
|
||||
homePath = htmlFile.replace(/\/[^\/]+$/, "").replace(/^\.\/dist-site\//, "");
|
||||
if (!homePath || homePath === "dist-site") {
|
||||
isTopPage = true;
|
||||
homePath = "./";
|
||||
cssPath = "main.css";
|
||||
ieCssPath = "ie.css";
|
||||
jsPath = "init.js";
|
||||
} else {
|
||||
isTopPage = false;
|
||||
length = homePath.split("/").length;
|
||||
homePath = "";
|
||||
for (j = 0; j < length - 1; j++) {
|
||||
homePath += "../";
|
||||
}
|
||||
cssPath = homePath + "main.css";
|
||||
ieCssPath = homePath + "ie.css";
|
||||
jsPath = homePath + "init.js";
|
||||
}
|
||||
fileContents = fileContents.replace(/HOMEPATH/g, homePath);
|
||||
fileContents = fileContents.replace(/\main\.css/, cssPath);
|
||||
fileContents = fileContents.replace(/\ie\.css/, ieCssPath);
|
||||
fileContents = fileContents.replace(/\init\.js/, jsPath);
|
||||
|
||||
//Set the page title to be the first h1 tag name
|
||||
if (title) {
|
||||
fileContents = fileContents.replace(/<title>[^<]*<\/title>/, '<title>' + title + '</title>');
|
||||
}
|
||||
|
||||
//If it is the top page, adjust the header links
|
||||
if (isTopPage) {
|
||||
fileContents = fileContents
|
||||
.replace(/href="\.\.\/"/g, 'href="./"')
|
||||
.replace(/class="local" href="([^"]+)"/g, 'class="local" href="docs/$1"');
|
||||
}
|
||||
|
||||
file.saveFile(htmlFile, fileContents);
|
||||
|
||||
file.deleteFile(transFile);
|
||||
|
||||
processFile();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
processFile();
|
||||
227
OfficeWeb/vendor/requirejs/dist/file.js
vendored
Normal file
227
OfficeWeb/vendor/requirejs/dist/file.js
vendored
Normal file
@@ -0,0 +1,227 @@
|
||||
/**
|
||||
* @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
|
||||
* Available via the MIT or new BSD license.
|
||||
* see: http://github.com/jrburke/requirejs for details
|
||||
*/
|
||||
|
||||
/*jslint plusplus: false, octal:false, strict: false */
|
||||
/*global require: false, exports: false */
|
||||
|
||||
var fs = require('fs'),
|
||||
path = require('path'),
|
||||
file, prop;
|
||||
|
||||
function mkDir(dir) {
|
||||
if (!fs.existsSync(dir)) {
|
||||
fs.mkdirSync(dir, 0777);
|
||||
}
|
||||
}
|
||||
|
||||
function mkFullDir(dir) {
|
||||
var parts = dir.split('/'),
|
||||
currDir = '',
|
||||
first = true;
|
||||
parts.forEach(function (part) {
|
||||
//First part may be empty string if path starts with a slash.
|
||||
currDir += part + '/';
|
||||
first = false;
|
||||
|
||||
if (part) {
|
||||
mkDir(currDir);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
file = {
|
||||
backSlashRegExp: /\\/g,
|
||||
getLineSeparator: function () {
|
||||
return '/';
|
||||
},
|
||||
|
||||
exists: function (fileName) {
|
||||
return fs.existsSync(fileName);
|
||||
},
|
||||
|
||||
parent: function (fileName) {
|
||||
var parts = fileName.split('/');
|
||||
parts.pop();
|
||||
return parts.join('/');
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the absolute file path as a string, normalized
|
||||
* to using front slashes for path separators.
|
||||
* @param {String} fileName
|
||||
*/
|
||||
absPath: function (fileName) {
|
||||
return path.normalize(fs.realpathSync(fileName).replace(/\\/g, '/'));
|
||||
},
|
||||
|
||||
normalize: function (fileName) {
|
||||
return path.normalize(fileName);
|
||||
},
|
||||
|
||||
isFile: function (path) {
|
||||
return fs.statSync(path).isFile();
|
||||
},
|
||||
|
||||
isDirectory: function (path) {
|
||||
return fs.statSync(path).isDirectory();
|
||||
},
|
||||
|
||||
getFilteredFileList: function (/*String*/startDir, /*RegExp*/regExpFilters, /*boolean?*/makeUnixPaths) {
|
||||
//summary: Recurses startDir and finds matches to the files that match regExpFilters.include
|
||||
//and do not match regExpFilters.exclude. Or just one regexp can be passed in for regExpFilters,
|
||||
//and it will be treated as the "include" case.
|
||||
//Ignores files/directories that start with a period (.).
|
||||
var files = [], topDir, regExpInclude, regExpExclude, dirFileArray,
|
||||
i, stat, filePath, ok, dirFiles, fileName;
|
||||
|
||||
topDir = startDir;
|
||||
|
||||
regExpInclude = regExpFilters.include || regExpFilters;
|
||||
regExpExclude = regExpFilters.exclude || null;
|
||||
|
||||
if (fs.existsSync(topDir)) {
|
||||
dirFileArray = fs.readdirSync(topDir);
|
||||
for (i = 0; i < dirFileArray.length; i++) {
|
||||
fileName = dirFileArray[i];
|
||||
filePath = path.join(topDir, fileName);
|
||||
stat = fs.statSync(filePath);
|
||||
if (stat.isFile()) {
|
||||
if (makeUnixPaths) {
|
||||
//Make sure we have a JS string.
|
||||
if (filePath.indexOf("/") === -1) {
|
||||
filePath = filePath.replace(/\\/g, "/");
|
||||
}
|
||||
}
|
||||
|
||||
ok = true;
|
||||
if (regExpInclude) {
|
||||
ok = filePath.match(regExpInclude);
|
||||
}
|
||||
if (ok && regExpExclude) {
|
||||
ok = !filePath.match(regExpExclude);
|
||||
}
|
||||
|
||||
if (ok && !fileName.match(/^\./)) {
|
||||
files.push(filePath);
|
||||
}
|
||||
} else if (stat.isDirectory() && !fileName.match(/^\./)) {
|
||||
dirFiles = this.getFilteredFileList(filePath, regExpFilters, makeUnixPaths);
|
||||
files.push.apply(files, dirFiles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return files; //Array
|
||||
},
|
||||
|
||||
copyDir: function (/*String*/srcDir, /*String*/destDir, /*RegExp?*/regExpFilter, /*boolean?*/onlyCopyNew) {
|
||||
//summary: copies files from srcDir to destDir using the regExpFilter to determine if the
|
||||
//file should be copied. Returns a list file name strings of the destinations that were copied.
|
||||
regExpFilter = regExpFilter || /\w/;
|
||||
|
||||
var fileNames = file.getFilteredFileList(srcDir, regExpFilter, true),
|
||||
copiedFiles = [], i, srcFileName, destFileName;
|
||||
|
||||
for (i = 0; i < fileNames.length; i++) {
|
||||
srcFileName = fileNames[i];
|
||||
destFileName = srcFileName.replace(srcDir, destDir);
|
||||
|
||||
if (file.copyFile(srcFileName, destFileName, onlyCopyNew)) {
|
||||
copiedFiles.push(destFileName);
|
||||
}
|
||||
}
|
||||
|
||||
return copiedFiles.length ? copiedFiles : null; //Array or null
|
||||
},
|
||||
|
||||
copyFile: function (/*String*/srcFileName, /*String*/destFileName, /*boolean?*/onlyCopyNew) {
|
||||
//summary: copies srcFileName to destFileName. If onlyCopyNew is set, it only copies the file if
|
||||
//srcFileName is newer than destFileName. Returns a boolean indicating if the copy occurred.
|
||||
var parentDir;
|
||||
|
||||
//logger.trace("Src filename: " + srcFileName);
|
||||
//logger.trace("Dest filename: " + destFileName);
|
||||
|
||||
//If onlyCopyNew is true, then compare dates and only copy if the src is newer
|
||||
//than dest.
|
||||
if (onlyCopyNew) {
|
||||
if (fs.existsSync(destFileName) && fs.statSync(destFileName).mtime.getTime() >= fs.statSync(srcFileName).mtime.getTime()) {
|
||||
return false; //Boolean
|
||||
}
|
||||
}
|
||||
|
||||
//Make sure destination dir exists.
|
||||
parentDir = path.dirname(destFileName);
|
||||
if (!fs.existsSync(parentDir)) {
|
||||
mkFullDir(parentDir);
|
||||
}
|
||||
|
||||
fs.writeFileSync(destFileName, fs.readFileSync(srcFileName, 'binary'), 'binary');
|
||||
return true; //Boolean
|
||||
},
|
||||
|
||||
/**
|
||||
* Reads a *text* file.
|
||||
*/
|
||||
readFile: function (/*String*/path, /*String?*/encoding) {
|
||||
if (encoding === 'utf-8') {
|
||||
encoding = 'utf8';
|
||||
}
|
||||
if (!encoding) {
|
||||
encoding = 'utf8';
|
||||
}
|
||||
|
||||
return fs.readFileSync(path, encoding);
|
||||
},
|
||||
|
||||
saveUtf8File: function (/*String*/fileName, /*String*/fileContents) {
|
||||
//summary: saves a *text* file using UTF-8 encoding.
|
||||
file.saveFile(fileName, fileContents, "utf8");
|
||||
},
|
||||
|
||||
saveFile: function (/*String*/fileName, /*String*/fileContents, /*String?*/encoding) {
|
||||
//summary: saves a *text* file.
|
||||
var parentDir;
|
||||
|
||||
if (encoding === 'utf-8') {
|
||||
encoding = 'utf8';
|
||||
}
|
||||
if (!encoding) {
|
||||
encoding = 'utf8';
|
||||
}
|
||||
|
||||
//Make sure destination directories exist.
|
||||
parentDir = path.dirname(fileName);
|
||||
if (!fs.existsSync(parentDir)) {
|
||||
mkFullDir(parentDir);
|
||||
}
|
||||
|
||||
fs.writeFileSync(fileName, fileContents, encoding);
|
||||
},
|
||||
|
||||
deleteFile: function (/*String*/fileName) {
|
||||
//summary: deletes a file or directory if it exists.
|
||||
var files, i, stat;
|
||||
if (fs.existsSync(fileName)) {
|
||||
stat = fs.statSync(fileName);
|
||||
if (stat.isDirectory()) {
|
||||
files = fs.readdirSync(fileName);
|
||||
for (i = 0; i < files.length; i++) {
|
||||
this.deleteFile(path.join(fileName, files[i]));
|
||||
}
|
||||
fs.rmdirSync(fileName);
|
||||
} else {
|
||||
fs.unlinkSync(fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
for (prop in file) {
|
||||
if (file.hasOwnProperty(prop)) {
|
||||
exports[prop] = file[prop];
|
||||
}
|
||||
}
|
||||
BIN
OfficeWeb/vendor/requirejs/dist/fonts/Inconsolata.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/Inconsolata.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Caption.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Caption.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Caption_Bold.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Caption_Bold.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Italic.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Italic.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Narrow.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Narrow.ttf
vendored
Normal file
Binary file not shown.
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Narrow_Bold.ttf
vendored
Normal file
BIN
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Narrow_Bold.ttf
vendored
Normal file
Binary file not shown.
26
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/Paratype PT Sans Free Font License.txt
vendored
Normal file
26
OfficeWeb/vendor/requirejs/dist/fonts/PT-Sans/Paratype PT Sans Free Font License.txt
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
Copyright © 2009 ParaType Ltd.
|
||||
with Reserved Names "PT Sans" and "ParaType".
|
||||
|
||||
FONT LICENSE
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of the font software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the font software, subject to the following conditions:
|
||||
|
||||
1) Neither the font software nor any of its individual components, in original or modified versions, may be sold by itself.
|
||||
|
||||
2) Original or modified versions of the font software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No modified version of the font software may use the Reserved Name(s) or combinations of Reserved Names with other words unless explicit written permission is granted by the ParaType. This restriction only applies to the primary font name as presented to the users.
|
||||
|
||||
4) The name of ParaType or the author(s) of the font software shall not be used to promote, endorse or advertise any modified version, except to acknowledge the contribution(s) of ParaType and the author(s) or with explicit written permission of ParaType.
|
||||
|
||||
5) The font software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
|
||||
|
||||
TERMINATION & TERRITORY
|
||||
This license has no limits on time and territory, but it becomes null and void if any of the above conditions are not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL PARATYPE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
ParaType Ltd
|
||||
http://www.paratype.ru
|
||||
35
OfficeWeb/vendor/requirejs/dist/init.js
vendored
Normal file
35
OfficeWeb/vendor/requirejs/dist/init.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
$(document).ready(function($) {
|
||||
|
||||
// set panel min-height to full browser height
|
||||
$(window).bind("load resize", function(){
|
||||
var h = $(window).height();
|
||||
$("#wrapper, #grid, #navBg").css({ "min-height" : (h) });
|
||||
$("#content").css({ "min-height" : (h-168) });
|
||||
});
|
||||
|
||||
// toggle grid
|
||||
|
||||
$("#grid").hide();
|
||||
|
||||
$(document.documentElement).keyup(function (event) {
|
||||
if (event.keyCode == 71) {
|
||||
$("#grid").fadeToggle(100);
|
||||
}
|
||||
});
|
||||
|
||||
// if window is larger than #nav then #nav == fixed, if #nav is larger than window #nav == relative
|
||||
$(window).bind("load resize", function(){
|
||||
var w = $(window).height();
|
||||
var h = $("#nav").outerHeight();
|
||||
$("#nav").css("position",(w < h) ? "" : "fixed");
|
||||
});
|
||||
|
||||
// open / close off-canvas navigation
|
||||
$('.off-canvas-button').click(function() {
|
||||
// transform button to close shape
|
||||
$(this).toggleClass('open');
|
||||
// slide in side navigation
|
||||
$('#nav').toggleClass('open');
|
||||
});
|
||||
// done!
|
||||
});
|
||||
10
OfficeWeb/vendor/requirejs/dist/post.html
vendored
Normal file
10
OfficeWeb/vendor/requirejs/dist/post.html
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
</div>
|
||||
<div id="footer" class="mono">
|
||||
<span class="line">Latest Release: <a href="http://requirejs.org/docs/download.html">2.1.10</a></span>
|
||||
<span class="line">Open source: <a href="https://github.com/jrburke/requirejs/blob/master/LICENSE">new BSD or MIT licensed</a></span>
|
||||
<span class="line">web design by <a href="http://andychung.ca">Andy Chung</a> © 2011-2014</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
185
OfficeWeb/vendor/requirejs/dist/pre.html
vendored
Normal file
185
OfficeWeb/vendor/requirejs/dist/pre.html
vendored
Normal file
@@ -0,0 +1,185 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>RequireJS</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="main.css">
|
||||
<link rel="icon" type="image/x-icon" href="/favicon.png">
|
||||
<!--[if IE]> <link rel="stylesheet" type="text/css" href="ie.css" /> <![endif]-->
|
||||
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojox/highlight/resources/highlight.css">
|
||||
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="init.js"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js"></script>
|
||||
<script type="text/javascript">
|
||||
dojo.require("dojox.highlight");
|
||||
dojo.require("dojox.highlight.languages.javascript");
|
||||
dojo.require("dojox.highlight.languages.html");
|
||||
dojo.ready(function() {
|
||||
dojo.query("pre > code")
|
||||
.forEach(function(node) {
|
||||
if (node.innerHTML.indexOf("DOCTYPE") !== -1 || node.innerHTML.indexOf('<script') !== -1) {
|
||||
dojo.addClass(node, "html");
|
||||
} else {
|
||||
dojo.addClass(node, "javascript");
|
||||
}
|
||||
})
|
||||
.forEach(dojox.highlight.init);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="grid"></div>
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="navBg"></div>
|
||||
<button type="button" role="button" aria-label="Toggle Navigation" class="off-canvas-button">
|
||||
<span class="lines">
|
||||
<span class="line"> </span>
|
||||
<span class="line"> </span>
|
||||
<span class="line"> </span>
|
||||
</span>
|
||||
<span class="cross">×</span>
|
||||
</button>
|
||||
<div id="nav" class="mono">
|
||||
<a class="homeImageLink" href="HOMEPATH"></a>
|
||||
<h1>a javascript module loader</h1>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a href="HOMEPATH">Home</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon home"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a class="local" href="start.html">Start</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon start"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="download.html">Download</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon download"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="api.html">API</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon api"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="optimization.html">Optimization</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon optimize"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a class="local" href="jquery.html">Use with jQuery</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon script"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="node.html">Use with Node</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon script"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="dojo.html">Use with Dojo</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon script"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="commonjs.html">CommonJS Notes</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon script"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a class="local" href="faq.html">FAQs</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon question"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="errors.html">Common Errors</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon question"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="plugins.html">Writing Plugins</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon api"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a class="local" href="why.html">Why Web Modules</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon question"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="whyamd.html">Why AMD</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon question"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="requirements.html">Requirements</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon requirement"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="history.html">History</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon history"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a href="http://groups.google.com/group/requirejs">Get Help</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon help"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a href="http://jrburke.com/">Blog</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon blog"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a href="http://twitter.com/jrburke">Twitter</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon twitter"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="hbox">
|
||||
<a href="http://github.com/jrburke/requirejs">GitHub</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon git"></span>
|
||||
</li>
|
||||
<li class="hbox">
|
||||
<a class="local" href="contributing.html">Contributing</a>
|
||||
<span class="spacer boxFlex"></span>
|
||||
<span class="icon fork"></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<ul>
|
||||
<li class="version">2.1.10 Docs (<a href="https://github.com/jrburke/requirejs/wiki/Upgrading-to-RequireJS-2.1">upgrade info</a>)</li>
|
||||
<li class="version"><a class="local" href="1.0/">1.0 Doc Link</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
Reference in New Issue
Block a user