Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • cordeliaze/cesium
  • pfouque06/cesium
  • wellno1/cesium
  • 1000i100/cesium
  • vincentux/cesium
  • calbasi/cesium
  • thomasbromehead/cesium
  • matograine/cesium
  • clients/cesium-grp/cesium
  • cedricmenec/cesium
  • Pamplemousse/cesium
  • etienneleba/cesium
  • tnntwister/cesium
  • scanlegentil/cesium
  • morvanc/cesium
  • yyy/cesium
  • Axce/cesium
  • Bertrandbenj/cesium
  • Lupus/cesium
  • elmau/cesium
  • MartinDelille/cesium
  • tykayn/cesium
  • numeropi/cesium
  • Vivakvo/cesium
  • pokapow/cesium
  • pini-gh/cesium
  • anam/cesium
  • RavanH/cesium
  • bpresles/cesium
  • am97/cesium
  • tuxmain/cesium
  • jytou/cesium
  • oliviermaurice/cesium
  • 666titi999/cesium
  • Yvv/cesium
35 results
Select Git revision
Show changes
Showing
with 263 additions and 0 deletions
resources/ios/splash/Default@2x~universal~anyany.png

93.9 KiB

resources/ios/splash/Default~iphone.png

21.2 KiB | W: 0px | H: 0px

resources/ios/splash/Default~iphone.png

12 KiB | W: 0px | H: 0px

resources/ios/splash/Default~iphone.png
resources/ios/splash/Default~iphone.png
resources/ios/splash/Default~iphone.png
resources/ios/splash/Default~iphone.png
  • 2-up
  • Swipe
  • Onion skin
resources/logo/web-ext/cesium-app-site.png

165 KiB

resources/logo/web-ext/cesium-firefox.jpg

3.48 KiB

resources/logo/web-ext/cesium-firefox.png

89.2 KiB

resources/osx/icon-1024.png

379 KiB

resources/osx/icon-128.png

24 KiB

resources/osx/icon-16.png

1.39 KiB

resources/osx/icon-256.png

67.2 KiB

resources/osx/icon-32.png

3.26 KiB

resources/osx/icon-512.png

187 KiB

resources/osx/icon-64.png

8.65 KiB

resources/splash.png

60.8 KiB | W: 0px | H: 0px

resources/splash.png

104 KiB | W: 0px | H: 0px

resources/splash.png
resources/splash.png
resources/splash.png
resources/splash.png
  • 2-up
  • Swipe
  • Onion skin
resources/ubuntu/img/logo_57px.png

4.9 KiB

/**
* Add browser actions, for WebExtension
* (e.g. to open Cesium in a tab, when integrated as a Firefox extension).
*
* See https://forum.duniter.org/t/premiere-version-du-module-cesium-pour-firefox/6944
*
**/
var browser, chrome;
browser = browser || chrome;
var action = browser.browserAction || (chrome && chrome.action);
var browserExtensionRequirements = browser.tabs && action && action.onClicked;
// If integrated as a browser extension
if (browserExtensionRequirements) {
console.debug("[extension] Initializing...");
/**
* Open Cesium in a new browser's tab
*/
function openInTab() {
console.debug("[extension] Opening Cesium...")
browser.tabs.create({
url: "index.html"
});
}
// Adding browser action
action.onClicked.addListener(openInTab);
// FIXME: finish this code
function checkNotifications() {
console.debug("[extension] Checking for notifications...");
action.setBadgeText({
text: '0'
});
action.setBadgeBackgroundColor({
color: '#387EF5' // = $positive color - see the SCSS theme
});
// Loop, after a delay
setTimeout(function() {
checkNotifications();
}, 60 * 1000 /*1min*/);
}
//checkNotifications();
}
else {
console.error("[extension] Cannot init extension: missing some API requirements (action or tabs");
}
{
"name": "Cesium",
"short_name": "Cesium",
"version": "1.7.14",
"description": "Manage your Duniter Wallet on a libre currency, like Ğ1",
"background": {
"scripts": ["background.js"]
},
"permissions": ["storage"],
"browser_action" : {
"default_title": "Cesium",
"default_icon": {
"32": "img/logo_32px.png",
"60": "img/logo_60px.png",
"96": "img/logo_96px.png",
"128": "img/logo_128px.png",
"192": "img/logo.svg"
}
},
"icons": {
"32": "img/logo_32px.png",
"60": "img/logo_60px.png",
"96": "img/logo_96px.png",
"128": "img/logo_128px.png",
"192": "img/logo.svg"
},
"protocol_handlers": [
{
"protocol": "web+june",
"name": "web Ğ1",
"uriTemplate": "index.html#/app/home?uri=%s"
}
],
"manifest_version": 2
}
#!/bin/bash
# Get to the root project
if [[ "_" == "_${PROJECT_DIR}" ]]; then
SCRIPT_DIR=$(dirname $0)
PROJECT_DIR=$(cd ${SCRIPT_DIR}/.. && pwd)
export PROJECT_DIR
fi;
# Preparing Android environment
. ${PROJECT_DIR}/scripts/env-android.sh
if [[ $? -ne 0 ]]; then
exit 1
fi
cd ${PROJECT_DIR}
if [[ ! -d "${ANDROID_SDK_CLI_ROOT}/bin" ]]; then
echo "Failed to find the Android SDK CLI. Please run first: \`scripts/install-android-sdk-tools.sh\`"
exit 1
fi
# Run the build
echo "Cleaning previous android APK files..."
rm -f ${ANDROID_OUTPUT_APK_DEBUG}/*.apk
rm -f ${ANDROID_OUTPUT_APK_RELEASE}/*.apk*
echo "Running cordova build android..."
ionic cordova build android --warning-mode=none --color $* -- -- --packageType=apk
#ionic cordova build android --warning-mode=none --color --verbose -- -- --packageType=apk
#!/bin/bash
# Get to the root project
if [[ "_" == "_${PROJECT_DIR}" ]]; then
SCRIPT_DIR=$(dirname $0)
PROJECT_DIR=$(cd ${SCRIPT_DIR}/.. && pwd)
export PROJECT_DIR
fi;
# Preparing Android environment
. ${PROJECT_DIR}/scripts/env-android.sh
[[ $? -ne 0 ]] && exit 1
cd ${PROJECT_DIR}
# ----------------------------------
# Check templates files build
# ----------------------------------
# Generate templates JS file
echo "--------------------------------"
echo "Building templates file... [1/2]"
gulp template > /dev/null
[[ $? -ne 0 ]] && exit 1
TEMPLATES_FILE="${PROJECT_DIR}/www/dist/dist_js/app/templates.js"
PLUGIN_TEMPLATES_FILE="${PROJECT_DIR}/www/dist/dist_js/plugins/templates.js"
if [[ ! -f ${TEMPLATES_FILE} ]] || [[ ! -f ${PLUGIN_TEMPLATES_FILE} ]]; then
echo "ERROR - Missing file ${TEMPLATES_FILE} or ${PLUGIN_TEMPLATES_FILE}"
exit 1;
fi;
# Keep a copy
rm -f "${TEMPLATES_FILE}.tmp"
rm -f "${PLUGIN_TEMPLATES_FILE}.tmp"
mv "${TEMPLATES_FILE}" "${TEMPLATES_FILE}.tmp"
mv "${PLUGIN_TEMPLATES_FILE}" "${PLUGIN_TEMPLATES_FILE}.tmp"
# Second generation
echo "Building templates file... [2/2]"
gulp template > /dev/null
[[ $? -ne 0 ]] && exit 1
echo "Building templates file [OK]"
# Check diff
echo "Checking diff between templates files..."
diff "${TEMPLATES_FILE}" "${TEMPLATES_FILE}.tmp" > /tmp/templates.js.diff
if [[ $? -ne 0 ]]; then
echo "ERROR: Detected some differences: build is not reproducible!"
echo " Diff are visible at: /tmp/templates.js.diff"
exit 1;
fi;
diff "${PLUGIN_TEMPLATES_FILE}" "${PLUGIN_TEMPLATES_FILE}.tmp" > /tmp/plugin_templates.js.diff
if [[ $? -ne 0 ]]; then
echo "ERROR: Detected some differences: build is not reproducible!"
echo " Diff are visible at: /tmp/plugin_templates.js.diff"
exit 1;
fi;
echo "Checking diff between templates files... [OK]"
# ----------------------------------
# Check web extension build
# ----------------------------------
# Clean generated files (1/2)
rm www/css/*.app*.css
rm -rf www/dist
rm -rf dist/web
# Compile (1/2)
echo "----------------------------"
echo "Building web extension... [1/2]"
gulp webExtBuild --release > /dev/null
WEB_EXT_DIR="${PROJECT_DIR}/dist/web/ext"
if [[ $? -ne 0 ]] || [[ ! -d "${WEB_EXT_DIR}" ]]; then
echo "ERROR - Build failed: missing folder ${WEB_EXT_DIR}"
exit 1;
fi;
# Keep a copy
WEB_EXT_COPY_DIR="/tmp/cesium-extention"
rm -rf "${WEB_EXT_COPY_DIR}"
mv "${WEB_EXT_DIR}" "${WEB_EXT_COPY_DIR}"
# Clean generated files (2/2)
rm www/css/*.app*.css
rm -rf www/dist
rm -rf dist/web
# Compile web extension (2/2)
echo "Building web extension... [2/2]"
gulp webExtBuild --release > /dev/null
[[ $? -ne 0 ]] && exit 1
echo "Building web extension... [OK]"
echo "Checking diff between builds..."
DIFF_FILE=/tmp/cesium-extention.diff
diff -arq "${WEB_EXT_DIR}" "${WEB_EXT_COPY_DIR}" > ${DIFF_FILE}
if [[ $? -ne 0 ]]; then
echo "Checking diff between builds... [FAILED] Build is NOT reproducible!"
echo "Please check following diff:"
cat ${DIFF_FILE}
# Clean temporary dir
rm -rf ${WEB_EXT_COPY_DIR}
exit 1;
fi;
# Final message
echo "Checking diff between builds... [SUCCESS] Build is reproducible."
# Clean temporary dir (silently)
rm -rf ${WEB_EXT_COPY_DIR} > /dev/null
rm /tmp/cesium-extention.diff
#!/bin/bash
# Get to the root project
if [[ "_" == "_${PROJECT_DIR}" ]]; then
SCRIPT_DIR=$(dirname $0)
PROJECT_DIR=$(cd ${SCRIPT_DIR}/.. && pwd)
export PROJECT_DIR
fi;
cd ${PROJECT_DIR}
CMD="sudo docker build ${PROJECT_DIR} -t cesium/release"
echo "Executing: $CMD"
$CMD
#!/bin/bash
# Get to the root project
if [[ "_" == "_${PROJECT_DIR}" ]]; then
SCRIPT_DIR=$(dirname $0)
PROJECT_DIR=$(cd ${SCRIPT_DIR}/.. && pwd)
export PROJECT_DIR
fi;
cd ${PROJECT_DIR}
CMD="sudo docker run -ti --rm -p 8100:8100 -p 35729:35729 -v ${PROJECT_DIR}:/cesium:rw cesium:release"
echo "Executing: $CMD"
$CMD