From 80603494574a93527505c0d03efddbf98f28dfad Mon Sep 17 00:00:00 2001 From: StrugglingDoge Date: Tue, 30 Apr 2019 21:12:37 -0400 Subject: Initial Commit --- .github/ISSUE_TEMPLATE/bug_report.md | 28 ++ .gitignore | 1 + LICENSE | 21 ++ Packages | 16 ++ README.md | 164 ++++++++++++ Release | 8 + assets/Banners/RepoHeader.png | Bin 0 -> 25707 bytes assets/Screenshots/screenshot.png | Bin 0 -> 31622 bytes assets/Screenshots/screenshot2.png | Bin 0 -> 31622 bytes assets/clean.sh | 8 + assets/update.sh | 18 ++ depictions/changelog.html | 120 +++++++++ .../com.sukarodo.samplepackage/changelog.xml | 6 + depictions/com.sukarodo.samplepackage/info.xml | 45 ++++ .../com.sukarodo.samplepackage/screenshots/.ignore | 1 + .../screenshots/cydia.jpg | Bin 0 -> 128506 bytes .../screenshots/shot1-thumb.jpg | Bin 0 -> 18998 bytes .../screenshots/shot1.jpg | Bin 0 -> 40737 bytes depictions/index.html | 263 ++++++++++++++++++ depictions/js/data-loader-engine.js | 78 ++++++ depictions/js/ios_version_check.js | 126 +++++++++ depictions/js/jquery.querystring.js | 13 + depictions/screenshots.html | 135 ++++++++++ depictions/style.css | 30 +++ dpkg-scanpackages | 295 +++++++++++++++++++++ index.html | 73 +++++ repo.xml | 14 + sileo-featured.json | 13 + .../com.sukarodo.samplepackage/depiction.json | 85 ++++++ sileodepictions/js/data-loader-engine.js | 78 ++++++ sileodepictions/js/ios_version_check.js | 126 +++++++++ sileodepictions/js/jquery.querystring.js | 13 + 32 files changed, 1778 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 Packages create mode 100644 README.md create mode 100644 Release create mode 100644 assets/Banners/RepoHeader.png create mode 100644 assets/Screenshots/screenshot.png create mode 100644 assets/Screenshots/screenshot2.png create mode 100644 assets/clean.sh create mode 100644 assets/update.sh create mode 100644 depictions/changelog.html create mode 100644 depictions/com.sukarodo.samplepackage/changelog.xml create mode 100644 depictions/com.sukarodo.samplepackage/info.xml create mode 100644 depictions/com.sukarodo.samplepackage/screenshots/.ignore create mode 100644 depictions/com.sukarodo.samplepackage/screenshots/cydia.jpg create mode 100644 depictions/com.sukarodo.samplepackage/screenshots/shot1-thumb.jpg create mode 100644 depictions/com.sukarodo.samplepackage/screenshots/shot1.jpg create mode 100644 depictions/index.html create mode 100644 depictions/js/data-loader-engine.js create mode 100644 depictions/js/ios_version_check.js create mode 100644 depictions/js/jquery.querystring.js create mode 100644 depictions/screenshots.html create mode 100644 depictions/style.css create mode 100644 dpkg-scanpackages create mode 100644 index.html create mode 100644 repo.xml create mode 100644 sileo-featured.json create mode 100644 sileodepictions/com.sukarodo.samplepackage/depiction.json create mode 100644 sileodepictions/js/data-loader-engine.js create mode 100644 sileodepictions/js/ios_version_check.js create mode 100644 sileodepictions/js/jquery.querystring.js diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..bd84632 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +name: Bug Report +about: Create a report to help me improve + +--- + +**Describe The Bug:** +A clear and concise description of what the bug is. +Please do not post questions or `how do I`'s here. Contact/DM [@sukarodo](http://twitter.com/sukarodo) on Twitter. + +**How To Reproduce:** +Steps to reproduce the behavior: + +**Expected Behaviour:** +A clear and concise description of what you expected to happen. + +**Screenshots:** +If applicable, add screenshots to help explain your problem. + +**Platform:** +Where does the error occurs? + - Mobile Browser [e.g Mobile Safari, Chrome] + - Cydia + - Sileo + - Desktop Browser [e.g. Safari, Firefox] + +**Any Additional Context:** +Add any other context about the problem here. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..49c614d --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Jay. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Packages b/Packages new file mode 100644 index 0000000..992b680 --- /dev/null +++ b/Packages @@ -0,0 +1,16 @@ +Package: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Version: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Architecture: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Maintainer: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Filename: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Size: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +MD5sum: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +SHA1: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +SHA256: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Section: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Description: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +SileoDepiction: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py or Manually Entered if Not In Tweaks `control` file. +Depiction: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py or Manually Entered if Not In Tweaks `control` file. +Installed-Size: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Name: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py +Priority: AUTOMATICALLY ENTERED BY SCRIPT / DPKG-SCANPACKAGES.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..a5faabf --- /dev/null +++ b/README.md @@ -0,0 +1,164 @@ +# Sidia (Based On Reposi3) +A Sileo / Cydia repository template. This template contains samples on how you can easily make depiction pages without replicating your html pages. The pages are styled using [Bootsrap](http://getbootstrap.com/) which is really easy to use (for Cydia), and the Sileo pages are styled using JavaScript Object Notation. + +This guide does NOT cover creating .deb files but will briefly cover assiging depictions. + +#### CREDITS TO: @Supermamon, @EssentialisRepo, Saurik, and the Sileo Team + +## How to use this template +If you are *not* hosting your repo on [Github Pages](https://pages.github.com/), you can download the zip file [here](https://github.com/sukarodo/Sidia/archive/master.zip) and extract to a subfolder on your website. + +**Release File** + +Edit `Release` file. Modify the items pointed by `<--` + + Origin: Sidia <-- + Label: Sidia <-- + Suite: stable + Version: 1.0 + Codename: ios + Architectures: iphoneos-arm + Components: main + Description: Sidia - a modern cydia / sileo apt repository template <-- + +**Branding** + +Open `index.html` +Change Sidia to whatever you wish. +Change lines 54 - 63 to whatever you wish. +Change line 71 into your own URL. +Note: YOU DO NOT NEED THIS. YOU CAN ALSO MAKE YOUR OWN. DO WHAT YOU WISH. + +Add "CydiaIcon.png" for your Cydia / Sileo Repository Logo. + + +**Page Footers** + +This data are the links that appear at the bottom of every **Cydia Depiction**. The data is stored in `repo.xml` at the root folder of your repo. + +```xml + + + + Follow me on Twitter + https://twitter.com/Sukarodo + glyphicon glyphicon-user + + + I want this depiction template + https://github.com/sukarodo/sidia + glyphicon glyphicon-thumbs-up + + + +``` + + +### Adding a simple depiction page (Cydia) + +Go to the depictions folder and duplicate the folder `com.sukarodo.oldpackage`. +Rename the duplicate with the same name as your package name. +There are 2 files inside the folder - `info.xml` and `changelog.xml`. +Update the 2 files with information regading your package. +The tags are pretty much self-explanatory. +Contact [@sukarodo](https://twitter.com/sukarodo) for questions. + +`info.xml`. +```xml + + com.sukarodo.oldpackage + Old Package + 1.0.0-1 + + + 5.0 + 7.0 + unsupported + + + + + + This is an old package. Requires iOS 7 and below.. + + + + Initial release + + + +``` + +`changelog.xml`. +```xml + + + 1.0.0-1 + Initial release + + +``` +### Adding a simple depiction page (Sileo) + +Go to the /sileodepictions/com.sukarodo.samplepackage and copy the file `depiction.json`. +Move into a folder labeled as your package name. +Edit The Labeled Parts (i.e. VERSION_NUMBER, TWEAK_NAME, etc.) +Contact [@sukarodo](https://twitter.com/sukarodo) for questions. + +#### Link the depiction page in your tweak's `control` file + +You can add the depictions url at the end of your package's `control` file before compiling it. +The depiction line should look like this: + +```text +Depiction: https://username.github.io/repo/depictions/?p=[idhere] +``` + +Replace `[idhere]` with your actual package name. + +```text +Depiction: https://username.github.io/repo/depictions/?p=com.sukarodo.oldpackage +``` +For Sileo Depictions, add the SileoDepiction key in your `control` file before compiling it. + +```text +SileoDepiction: https://username.github.io/repo/sileodepictions/com.sukarodo.samplepackage/depiction.json.json +```` + +#### Rebuilding the `Packages` file + +With your updated `control` file, build your tweak. +*REMOVE THE PACKAGES FILE WITHIN FIRST* +Store the resulting `.deb.` file into the `/debs/` folder of your repo. +Build your `Packages` file and compress with `bzip2`. + +``` +run update.sh on Mac. (Move update & clean.sh from /assets/ to /*) +Remove "update.sh" and "clean.sh" on Windows. +``` + +_Windows users, see [dpkg-scanpackages-py](https://github.com/supermamon/dpkg-scanpackages-py) or [scanpkg](https://github.com/mstg/scanpkg)._ + +#### Cydia / Sileo at last! + +If you haven't done yet, go ahead and add your repo to Cydia / Sileo. +You should now be able to install your tweak into your own repo. + +### Cleanup + +Just a cleanup step, remove the debs that came with this template and re-run the commands on step 3. You can keep the sample depictions for reference but they're not needed for your repo. + +## Sileo Extras + +These are some extra things that can make your repository look even better on Sileo. + +### Featured Packages (`sileo-featured.json`) + +Change The Following Lines: +``` + "url": "https://raw.githubusercontent.com/sukarodo/Sidia/master/assets/Banners/RepoHeader.png", <---- The Package Banner + "title": "Sample Package", <---- Your Package Name + "package": "com.sukarodo.newpackage", <---- The Actual Package +``` diff --git a/Release b/Release new file mode 100644 index 0000000..443b4c1 --- /dev/null +++ b/Release @@ -0,0 +1,8 @@ +Origin: Struggling Doge Test Repo +Label: Struggling Doge Test Repo +Suite: stable +Version: 1.0 +Codename: ios +Architectures: iphoneos-arm +Components: main +Description: A small test repository to hold tweaks \ No newline at end of file diff --git a/assets/Banners/RepoHeader.png b/assets/Banners/RepoHeader.png new file mode 100644 index 0000000..f3caf18 Binary files /dev/null and b/assets/Banners/RepoHeader.png differ diff --git a/assets/Screenshots/screenshot.png b/assets/Screenshots/screenshot.png new file mode 100644 index 0000000..97d3f7a Binary files /dev/null and b/assets/Screenshots/screenshot.png differ diff --git a/assets/Screenshots/screenshot2.png b/assets/Screenshots/screenshot2.png new file mode 100644 index 0000000..11baacd Binary files /dev/null and b/assets/Screenshots/screenshot2.png differ diff --git a/assets/clean.sh b/assets/clean.sh new file mode 100644 index 0000000..12a8d57 --- /dev/null +++ b/assets/clean.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Cleaning..." + +echo "removing .DS_Store files" +find . -name '.DS_Store' -delete + +echo "done." diff --git a/assets/update.sh b/assets/update.sh new file mode 100644 index 0000000..5435628 --- /dev/null +++ b/assets/update.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +echo + +./clean.sh + +echo +echo "Rebuilding package list..." +echo "--------------------------" + +rm -f Packages* +dpkg-scanpackages -m ./debs /dev/null > Packages +bzip2 -k Packages +./dpkg-scanpackages -m ./debians/ /dev/null > Packages + +echo "--------------------------" +echo "Done." +echo diff --git a/depictions/changelog.html b/depictions/changelog.html new file mode 100644 index 0000000..9fbe709 --- /dev/null +++ b/depictions/changelog.html @@ -0,0 +1,120 @@ + + + + Changelog + + + + + + + + + + + + + + +
+ +
+
+
+
+ + + + +
+
+
CONTACT
+ +
+
+ + + + diff --git a/depictions/com.sukarodo.samplepackage/changelog.xml b/depictions/com.sukarodo.samplepackage/changelog.xml new file mode 100644 index 0000000..d736af0 --- /dev/null +++ b/depictions/com.sukarodo.samplepackage/changelog.xml @@ -0,0 +1,6 @@ + + + 1.0.0 + Initial Release + + diff --git a/depictions/com.sukarodo.samplepackage/info.xml b/depictions/com.sukarodo.samplepackage/info.xml new file mode 100644 index 0000000..e7bed58 --- /dev/null +++ b/depictions/com.sukarodo.samplepackage/info.xml @@ -0,0 +1,45 @@ + + com.sukarodo.samplepackage + Sample Package + 1.0 + + + 7.0 + + + + mobilesubstrate + + This is a sample new package. Firmware should be greater than 7.0 + + This is an package will full depictions. + It has more description lines. + + a multi-line item. + ]]> + + + + + This is a description for screenshot 1. It's Cydia! + cydia.jpg + + + This is a description for screenshot 2. It's another Cydia! + cydia.jpg + + + + Second release + It has feature 1 + It has feature 2 + + + + /r/jailbreak + https://www.reddit.com/r/jailbreak + fa fa-reddit + + + diff --git a/depictions/com.sukarodo.samplepackage/screenshots/.ignore b/depictions/com.sukarodo.samplepackage/screenshots/.ignore new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/depictions/com.sukarodo.samplepackage/screenshots/.ignore @@ -0,0 +1 @@ + diff --git a/depictions/com.sukarodo.samplepackage/screenshots/cydia.jpg b/depictions/com.sukarodo.samplepackage/screenshots/cydia.jpg new file mode 100644 index 0000000..29c8801 Binary files /dev/null and b/depictions/com.sukarodo.samplepackage/screenshots/cydia.jpg differ diff --git a/depictions/com.sukarodo.samplepackage/screenshots/shot1-thumb.jpg b/depictions/com.sukarodo.samplepackage/screenshots/shot1-thumb.jpg new file mode 100644 index 0000000..da0197b Binary files /dev/null and b/depictions/com.sukarodo.samplepackage/screenshots/shot1-thumb.jpg differ diff --git a/depictions/com.sukarodo.samplepackage/screenshots/shot1.jpg b/depictions/com.sukarodo.samplepackage/screenshots/shot1.jpg new file mode 100644 index 0000000..5c55f6b Binary files /dev/null and b/depictions/com.sukarodo.samplepackage/screenshots/shot1.jpg differ diff --git a/depictions/index.html b/depictions/index.html new file mode 100644 index 0000000..0ea4024 --- /dev/null +++ b/depictions/index.html @@ -0,0 +1,263 @@ + + + + PackageName + + + + + + + + + + + + + +
+ +
+ + + +
+
+
+ +
+
DESCRIPTION
+
    +
+
+ +
+
IN THIS VERSION
+
    +
+
+
+
DEPENDENCIES
+
    +
+
+ + + +
+ + + + +
+
+
CONTACT
+ +
+
+ + + + diff --git a/depictions/js/data-loader-engine.js b/depictions/js/data-loader-engine.js new file mode 100644 index 0000000..723b728 --- /dev/null +++ b/depictions/js/data-loader-engine.js @@ -0,0 +1,78 @@ +function data_loader_engine(contentBlocks,xml) { + + /* Loop through each if the contentBlocks */ + $.each(contentBlocks, function (key,contentInfo){ + + console.log('Processing '+key); + console.log(' type= '+contentInfo.type); + + // go out if key element does not exits + if (!($(key).length)) {return} + + switch(contentInfo.type) { + case "text": + var content = $(xml).find(contentInfo.source).text(); + $(key).html(content) + break; + case "link": + console.log(' url= '+contentInfo.url); + console.log(' text= '+contentInfo.text); + + var url = contentInfo.url; + var params = []; + if (contentInfo.params) { + $.each(contentInfo.params, function(){ + this[1] = escape(this[1]); + params[params.length] = this.join('='); + }); + } + url = url+'?'+params.join('&'); + $(key).append( $("") + .attr("href",url) + .text(contentInfo.text) + ); + break; + case "list": + var list = $(xml).find(contentInfo.source); + + + if (list.size()==0) { + if (contentInfo.emptyListCallback) { + contentInfo.emptyListCallback($(key)) + } + } else { + if (!!contentInfo.reverseRender) { + list = $(list).get().reverse(); + } + $.each(list, function(index,value){ + var item = $(value).text() + + if (!!contentInfo.reverseRender) { + $(key).prepend( $(contentInfo.paragraphElement).html("

"+item+"

") ) + } else { + $(key).append( $(contentInfo.paragraphElement).html("

"+item+"

") ) + } + }); + } + break; + case "articles": + var articles = $(xml).find(contentInfo.source).children(); + var titleID = 0; + $.each(articles,function(index,article){ + var articleTitle = $(article).find(contentInfo.titleSource).text() + $(key).append( $(contentInfo.titleElement).html(articleTitle)); + var container = $(contentInfo.paragraphContainer).attr("id",++titleID); + $(key).append($(container)); + $.each( $(article).find(contentInfo.paragraphSource), function(index,paragraph){ + $(container).append( $(contentInfo.paragraphElement).html("

"+$(paragraph).text()+"

") ) + }) //paragraph + }) //article + + break; + case "custom": + if (!key) {return} + contentInfo.render( $(key), $(xml).find(contentInfo.source) ) + break; + }//switch + }); //each +} diff --git a/depictions/js/ios_version_check.js b/depictions/js/ios_version_check.js new file mode 100644 index 0000000..d6c0d8e --- /dev/null +++ b/depictions/js/ios_version_check.js @@ -0,0 +1,126 @@ +/* +most of the code here is writen by Timon Olsthoorn +Follow him on - +Github - https://github.com/tmnlsthrn +Twitter - @TimonOlsthoorn +*/ + +/* Lotus - iosver.js + * Copyright (C) 2014-2015 Timon Olsthoorn (tmnlsthrn) + */ + +/* + * Redistribution and use in source and binary + * forms, with or without modification, are permitted + * provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the + * above copyright notice, this list of conditions + * and the following disclaimer. + * 2. 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. + * 3. The name of the author may not be used to endorse + * or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. + */ + +// Adapted from https://github.com/tmnlsthrn/Lotus/blob/master/js/iosver.js + + +// changed const to var for IE9/10 compatibity. +var VERSION_CHECK_SUPPORTED = "Your iOS version is supported! 😊"; +var VERSION_CHECK_NEEDS_UPGRADE = "Requires at least iOS %s 😕"; +var VERSION_CHECK_UNCONFIRMED = "Not yet tested on iOS %s 😁"; +var VERSION_CHECK_UNSUPPORTED = "Only compatible with iOS %s to %s 😞"; + +function ios_version_check(minIOS,maxIOS,otherIOS,callBack) { + "use strict"; + + + function parseVersionString(version) { + var bits = version.split("."); + return [ + parseInt(bits[0], 10), + parseInt(bits[1] ? bits[1] : 0, 10), + parseInt(bits[2] ? bits[2] : 0, 10) + ]; + } + + function compareVersions(one, two) { + // https://gist.github.com/TheDistantSea/8021359 + for (var i = 0; i < one.length; ++i) { + if (two.length == i) { + return 1; + } + + if (one[i] == two[i]) { + continue; + } else if (one[i] > two[i]) { + return 1; + } else { + return -1; + } + } + + if (one.length != two.length) { + return -1; + } + + return 0; + } + + var version = navigator.appVersion.match(/CPU( iPhone)? OS (\d+)_(\d+)(_(\d+))? like/i); + if (!version) { + return 0; + } + + var osVersion = [ + parseInt(version[2], 10), + parseInt(version[3], 10), + parseInt(version[4] ? version[5] : 0, 10) + ], + + osString = osVersion[0] + "." + osVersion[1] + (osVersion[2] && osVersion[2] != 0 ? "." + osVersion[2] : ""), + minString = minIOS, + maxString = maxIOS, + + minVersion = parseVersionString(minString), + maxVersion = maxString ? parseVersionString(maxString) : null, + + message = VERSION_CHECK_SUPPORTED, + isBad = false; + + if (compareVersions(minVersion, osVersion) == 1) { + message = VERSION_CHECK_NEEDS_UPGRADE.replace("%s", minString); + isBad = true; + } else if (maxVersion && compareVersions(maxVersion, osVersion) == -1) { + if ("unsupported" == otherIOS) { + message = VERSION_CHECK_UNSUPPORTED.replace("%s", minString).replace("%s", maxString); + } else { + message = VERSION_CHECK_UNCONFIRMED.replace("%s", osString); + } + + isBad = true; + } + callBack(message,isBad); + + return (isBad?-1:1); +} diff --git a/depictions/js/jquery.querystring.js b/depictions/js/jquery.querystring.js new file mode 100644 index 0000000..507d005 --- /dev/null +++ b/depictions/js/jquery.querystring.js @@ -0,0 +1,13 @@ +(function($) { + $.QueryString = (function(a) { + if (a == "") return {}; + var b = {}; + for (var i = 0; i < a.length; ++i) + { + var p=a[i].split('='); + if (p.length != 2) continue; + b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " ")); + } + return b; + })(window.location.search.substr(1).split('&')) +})(jQuery); diff --git a/depictions/screenshots.html b/depictions/screenshots.html new file mode 100644 index 0000000..28b9739 --- /dev/null +++ b/depictions/screenshots.html @@ -0,0 +1,135 @@ + + + + Screenshots + + + + + + + + + + + + + + +
+ +
+
+
SCREENSHOTS
+
    +
+
+
+ + + + +
+
+
CONTACT
+ +
+
+ + + + diff --git a/depictions/style.css b/depictions/style.css new file mode 100644 index 0000000..0bb6513 --- /dev/null +++ b/depictions/style.css @@ -0,0 +1,30 @@ +.disable-hover { + pointer-events: none; +} + +.link-item { + list-style-type: none; + padding: 17px 15px; + display: block; + color: #337ab7 !important; + text-align: left; +} + +.link-item:hover { + border: 1px solid #ddd; + background-color: #f5f5f5; +} + +html.can-touch .link-item:hover{ /* disable hover effect when input is touch */ + background-color: #fff; +} + +html.can-touch .link-item:active{ /* disable hover effect when input is touch */ + background-color: #f5f5f5; +} + +.fa { + font-size: 16px; + margin-left: 5px; + margin-right: 10px; +} diff --git a/dpkg-scanpackages b/dpkg-scanpackages new file mode 100644 index 0000000..b5d98e8 --- /dev/null +++ b/dpkg-scanpackages @@ -0,0 +1,295 @@ +#!/usr/bin/perl +# +# dpkg-scanpackages +# +# Copyright © 2006-2015 Guillem Jover +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +use warnings; +use strict; + +use Getopt::Long qw(:config posix_default bundling no_ignorecase); +use File::Find; + +use Dpkg (); +use Dpkg::Gettext; +use Dpkg::ErrorHandling; +use Dpkg::Util qw(:list); +use Dpkg::Control; +use Dpkg::Version; +use Dpkg::Checksums; +use Dpkg::Compression::FileHandle; + +textdomain('dpkg-dev'); + +# Do not pollute STDOUT with info messages +report_options(info_fh => \*STDERR); + +my (@samemaint, @changedmaint); +my @spuriousover; +my %packages; +my %overridden; +my %hash; + +my %options = (help => sub { usage(); exit 0; }, + version => sub { version(); exit 0; }, + type => undef, + arch => undef, + hash => undef, + multiversion => 0, + 'extra-override'=> undef, + medium => undef, + ); + +my @options_spec = ( + 'help|?', + 'version', + 'type|t=s', + 'arch|a=s', + 'hash|h=s', + 'multiversion|m!', + 'extra-override|e=s', + 'medium|M=s', +); + +sub version { + printf g_("Debian %s version %s.\n"), $Dpkg::PROGNAME, $Dpkg::PROGVERSION; +} + +sub usage { + printf g_( +"Usage: %s [