Unverified Commit 16b1ad7a authored by akiraohgaki's avatar akiraohgaki Committed by GitHub
Browse files

Merge pull request #20 from opendesktop/develop

Develop
parents 136aa07b 8e0fb136
......@@ -2,6 +2,6 @@ build_*/
node_modules/
bin/
out/
ocsstore
ocsstore-appimage
ocsstore-*/
opendesktop-app
opendesktop-app-appimage
opendesktop-app-*/
......@@ -8,12 +8,8 @@ branches:
- master
script:
- mntdir='/mnt/ocsstore'
- docker run --rm -v $(pwd):${mntdir} ubuntu:16.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh ubuntu"
- docker run --rm -v $(pwd):${mntdir} fedora:20 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh fedora"
- docker run --rm -v $(pwd):${mntdir} opensuse:42.2 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh opensuse"
- docker run --rm -v $(pwd):${mntdir} base/archlinux:latest /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh archlinux"
- mntdir='/mnt/opendesktop-app'
#- docker run --rm -v $(pwd):${mntdir} ubuntu:16.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh snap"
#- docker run --rm -v $(pwd):${mntdir} ubuntu:16.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh flatpak"
- docker run --rm -v $(pwd):${mntdir} ubuntu:17.10 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh appimage"
- docker run --rm -v $(pwd):${mntdir} ubuntu:14.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh appimage"
- cat transfer.log
SHELL = /bin/sh
TARGET = ocsstore
TARGET = opendesktop-app
srcdir = .
build_tmpdir = ./build_tmp
ocsmanager_build = default
ocsmanager_version = 0.4.4
ocsmanager_tree_ish = release-0.5.2
DESTDIR =
prefix = /usr/local
......@@ -65,7 +65,7 @@ $(TARGET)-linux-x64: ocs-manager_$(ocsmanager_build)
ocs-manager_default:
mkdir -p $(build_tmpdir)
git clone https://github.com/opendesktop/ocs-manager.git -b release-$(ocsmanager_version) --single-branch --depth=1 $(build_tmpdir)/ocs-manager
git clone https://github.com/opendesktop/ocs-manager.git -b $(ocsmanager_tree_ish) --single-branch --depth=1 $(build_tmpdir)/ocs-manager
cd $(build_tmpdir)/ocs-manager; \
sh ./scripts/import.sh; \
qmake ./ocs-manager.pro; \
......@@ -74,7 +74,7 @@ ocs-manager_default:
ocs-manager_appimage:
mkdir -p $(build_tmpdir)
git clone https://github.com/opendesktop/ocs-manager.git -b release-$(ocsmanager_version) --single-branch --depth=1 $(build_tmpdir)/ocs-manager
git clone https://github.com/opendesktop/ocs-manager.git -b $(ocsmanager_tree_ish) --single-branch --depth=1 $(build_tmpdir)/ocs-manager
cd $(build_tmpdir)/ocs-manager; \
sh ./scripts/build.sh appimage
install -D -m 755 `find "$(build_tmpdir)/ocs-manager" -type f -name "ocs-manager*.AppImage"` $(srcdir)/bin/ocs-manager
# OCS-Store
# Opendesktop App
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Build Status](https://travis-ci.org/opendesktop/ocsstore.svg?branch=master)](https://travis-ci.org/opendesktop/ocsstore)
[![Build Status](https://travis-ci.org/opendesktop/opendesktop-app.svg?branch=master)](https://travis-ci.org/opendesktop/opendesktop-app)
OCS-compatible Electron-based frontend.
Opendesktop Official App.
Copyright: 2017, Opendesktop.org
Copyright: 2017-2018, Opendesktop.org
License: GPL-3+
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="360" height="360" viewBox="0, 0, 360, 360">
<g id="Background">
<rect x="0" y="0" width="360" height="360" fill="#000000" fill-opacity="0"/>
</g>
<defs>
<linearGradient id="Gradient_1" gradientUnits="userSpaceOnUse" x1="2140" y1="247.362" x2="2140" y2="282.362" gradientTransform="matrix(1, 0, 0, 1, -2020, 37.638)">
<stop offset="0" stop-color="#FFFFFF"/>
<stop offset="1" stop-color="#CCCCCC"/>
</linearGradient>
<linearGradient id="Gradient_2" gradientUnits="userSpaceOnUse" x1="0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(-15.299, 72.524, -78.644, -14.109, 250.754, 192.212)">
<stop offset="0" stop-color="#FF2F00"/>
<stop offset="0.07" stop-color="#FF2F00"/>
<stop offset="1" stop-color="#FF8400"/>
</linearGradient>
<linearGradient id="Gradient_3" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="1" y2="0" gradientTransform="matrix(34.973, 0, 0, 34.719, 225.402, 187.65)">
<stop offset="0" stop-color="#FF2F00"/>
<stop offset="1" stop-color="#FF8900"/>
</linearGradient>
<linearGradient id="Gradient_4" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="1" y2="0" gradientTransform="matrix(97, 0, 0, 99.521, 140.912, 138.417)">
<stop offset="0" stop-color="#2147A0"/>
<stop offset="1" stop-color="#00F2A1"/>
</linearGradient>
<linearGradient id="Gradient_5" gradientUnits="userSpaceOnUse" x1="0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(64.662, 0, 0, 72.545, 122.088, 138.299)">
<stop offset="0" stop-color="#204EA0"/>
<stop offset="1" stop-color="#01F0A1"/>
</linearGradient>
<linearGradient id="Gradient_6" gradientUnits="userSpaceOnUse" x1="-0" y1="0" x2="1" y2="0" gradientTransform="matrix(28.476, 49.005, -47.38, 29.451, 198.869, 245.728)">
<stop offset="0" stop-color="#F0C209"/>
<stop offset="0.14" stop-color="#F0C209"/>
<stop offset="0.63" stop-color="#DE920A"/>
<stop offset="1" stop-color="#D67C0B"/>
</linearGradient>
<linearGradient id="Gradient_7" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="1" y2="0" gradientTransform="matrix(36.634, 63.892, -60.975, 38.386, 146.008, 241.298)">
<stop offset="0" stop-color="#F0C209"/>
<stop offset="0.14" stop-color="#F0C209"/>
<stop offset="1" stop-color="#D4760B"/>
</linearGradient>
<linearGradient id="Gradient_8" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="1" y2="0" gradientTransform="matrix(-50.543, 76.511, -72.159, -53.591, 147.052, 177.176)">
<stop offset="0" stop-color="#B1115D"/>
<stop offset="0.14" stop-color="#B1115D"/>
<stop offset="1" stop-color="#D72881"/>
</linearGradient>
<linearGradient id="Gradient_9" gradientUnits="userSpaceOnUse" x1="-0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(36.049, 0, 0, 31.869, 98.55, 202.174)">
<stop offset="0" stop-color="#B1115D"/>
<stop offset="1" stop-color="#D62881"/>
</linearGradient>
</defs>
<g id="Layer_1">
<g id="ocs-store-bag">
<g id="g5329">
<path d="M60,74.013 L60,76.013 L60,92.013 L60,94.013 L62,94.013 L298,94.013 L300,94.013 L300,92.013 L300,76.013 L300,74.013 L298,74.013 L62,74.013 L60,74.013 z" fill="#808080" id="path4604"/>
<path d="M64,78.013 L296,78.013 L296,90.013 L64,90.013 L64,78.013 z" fill="#E6E6E6" id="rect3586-1"/>
<path d="M179,40 C167.738,40 156.764,44.406 148.375,51.625 C139.976,58.853 134,69.226 134,81 L134,90 L62,90 L60,90 L60,92 L60,318 L60,320 L62,320 L298,320 L300,320 L300,318 L300,92 L300,90 L298,90 L226,90 L226,81 C226,69.226 220.024,58.853 211.625,51.625 C203.236,44.406 192.262,40 181,40 L179,40 z M179,62 L181,62 C186.357,62 192.542,64.287 196.969,67.938 C201.42,71.608 204,76.27 204,81 L204,90 L156,90 L156,81 C156,76.27 158.58,71.608 163.031,67.938 C167.458,64.287 173.643,62 179,62 z" fill="#808080" id="path4598"/>
<path d="M179,44 C168.79,44 158.691,48.069 151,54.688 C143.319,61.298 138,70.583 138,81 L138,92 L138,94 L136,94 L64,94 L64,316 L296,316 L296,94 L224,94 L222,94 L222,92 L222,81 C222,70.583 216.681,61.298 209,54.688 C201.309,48.069 191.21,44 181,44 L179,44 z M179,58 L181,58 C187.461,58 194.353,60.605 199.531,64.875 L199.562,64.875 C204.706,69.123 208,74.835 208,81 L208,92 L208,94 L206,94 L154,94 L152,94 L152,92 L152,81 C152,74.835 155.294,69.123 160.437,64.875 L160.468,64.875 C165.646,60.605 172.538,58 178.999,58 z" fill="url(#Gradient_1)" id="path4596"/>
</g>
<g id="logo-7-6-3-1">
<path d="M219.741,250.65 L220.286,251.03 L239.276,270.02 L239.698,270.664 L239.83,271.423 L239.648,272.171 L239.184,272.784 C238.317,273.535 237.443,274.275 236.554,274.995 C234.917,276.32 233.235,277.585 231.511,278.792 C226.463,282.324 221.054,285.336 215.395,287.761 C213.61,288.529 211.798,289.235 209.965,289.882 C209.32,290.109 208.674,290.332 208.027,290.542 C207.748,290.635 207.47,290.725 207.191,290.812 C207.191,290.812 207.191,290.81 207.191,290.81 C207.189,290.812 207.189,290.812 207.186,290.815 C207.163,290.821 207.138,290.829 207.115,290.838 C207.113,290.838 207.11,290.838 207.107,290.838 C207.107,290.838 207.11,290.838 207.11,290.838 C206.708,290.967 206.305,291.088 205.903,291.209 C205.029,291.473 204.148,291.724 203.265,291.96 C200.661,292.655 198.025,293.234 195.368,293.69 C190.513,294.528 185.591,294.961 180.664,294.997 C177.269,295.023 173.872,294.86 170.494,294.502 C166.905,294.126 163.342,293.532 159.823,292.725 C154.536,291.513 149.358,289.814 144.374,287.662 C142.273,286.754 140.206,285.767 138.178,284.701 C137.169,284.169 136.17,283.618 135.183,283.05 L135.026,282.96 L134.874,282.87 L134.213,282.459 L133.555,282.077 C133.265,281.917 133.11,281.807 132.866,281.669 C132.86,281.666 132.472,281.424 132.469,281.421 C132.137,281.216 131.805,281.005 131.476,280.794 C130.689,280.288 129.907,279.771 129.136,279.239 C127.272,277.959 125.457,276.609 123.694,275.195 C122.783,274.463 121.888,273.712 121.005,272.947 L120.831,272.796 L120.367,272.182 L120.184,271.437 L120.313,270.678 L120.735,270.034 L132.52,258.224 L133.133,257.813 L133.858,257.667 L134.581,257.811 L135.197,258.221 L135.608,258.834 L135.751,259.56 L135.751,278.578 L158.386,255.046 L159.005,254.618 L159.745,254.466 L188.235,254.419 L205.18,254.419 L207.574,254.331 C208.294,254.244 209.017,254.18 209.737,254.073 C210.08,254.019 210.42,253.929 210.76,253.859 C211.75,253.648 211.753,253.656 212.715,253.35 C212.935,253.28 213.902,252.959 214.223,252.832 C214.445,252.745 215.095,252.458 215.32,252.346 C215.699,252.155 216.009,251.966 216.371,251.755 C216.557,251.646 216.743,251.539 216.928,251.429 C217.089,251.336 217.252,251.252 217.404,251.153 C217.553,251.055 217.693,250.942 217.837,250.838 L218.436,250.546 L219.097,250.481 C219.313,250.537 219.527,250.594 219.741,250.65 z M247.202,145.389 C247.407,145.544 247.618,145.69 247.815,145.853 C247.866,145.895 247.902,145.954 247.947,146.005 C248.082,146.16 248.217,146.314 248.349,146.472 C248.704,146.885 249.058,147.304 249.404,147.726 C250.493,149.043 251.544,150.39 252.557,151.768 C256.548,157.199 259.931,163.074 262.612,169.256 C264.893,174.515 266.667,179.994 267.899,185.594 C268.296,187.397 268.636,189.214 268.92,191.039 C269.021,191.674 269.114,192.31 269.199,192.949 C269.227,193.162 269.255,193.376 269.283,193.59 C269.291,193.66 269.303,193.733 269.308,193.806 C269.308,193.806 269.308,193.804 269.308,193.804 C269.353,194.147 269.393,194.493 269.432,194.836 C269.516,195.587 269.589,196.338 269.657,197.089 C269.865,199.482 269.978,201.887 269.997,204.291 C270.039,209.739 269.595,215.19 268.659,220.556 C267.714,225.965 266.271,231.286 264.35,236.43 C261.945,242.873 258.795,249.036 254.984,254.762 C253.572,256.885 252.073,258.947 250.487,260.941 C249.719,261.906 248.934,262.851 248.13,263.784 L247.967,263.97 L247.809,264.153 L247.196,264.62 L246.448,264.802 L245.689,264.67 L245.045,264.248 L224.061,243.267 C223.943,243.104 223.799,242.958 223.709,242.778 C223.619,242.598 223.557,242.401 223.526,242.201 C223.445,241.641 223.754,240.37 223.805,240.078 L223.979,238.542 C224.114,236.885 224.114,236.885 224.156,235.223 L224.156,174.679 C224.128,173.576 224.114,172.431 224.024,171.329 C223.979,170.809 223.917,170.291 223.85,169.774 C223.825,169.582 223.619,168.505 223.585,168.322 L223.571,167.712 C223.751,167.133 223.754,167.127 224.109,166.635 L245.053,145.755 L245.697,145.336 L246.454,145.206 C246.704,145.265 246.952,145.327 247.202,145.389 z M114.303,145.336 L114.947,145.755 L135.892,166.635 C136.01,166.801 136.159,166.95 136.252,167.135 C136.342,167.321 136.404,167.524 136.432,167.726 C136.491,168.187 136.316,168.806 136.235,169.228 L136.103,170.103 C135.973,170.997 135.973,170.997 135.886,171.897 L135.796,174.684 L135.796,242.578 L135.653,243.301 L135.242,243.914 L114.933,264.226 L114.289,264.648 L113.532,264.777 L112.784,264.594 L112.171,264.13 C111.468,263.323 110.779,262.507 110.107,261.678 C109.527,260.966 108.959,260.246 108.405,259.515 C108.22,259.273 108.034,259.028 107.851,258.784 C107.806,258.722 107.761,258.66 107.713,258.598 C107.668,258.539 107.623,258.477 107.578,258.418 C107.578,258.418 107.581,258.418 107.581,258.418 C107.536,258.359 107.491,258.3 107.449,258.241 C107.407,258.182 107.362,258.123 107.32,258.064 C107.19,257.889 107.064,257.712 106.937,257.535 C106.512,256.947 106.093,256.351 105.683,255.752 C101.967,250.324 98.848,244.49 96.404,238.382 C94.05,232.501 92.326,226.37 91.269,220.123 C90.433,215.207 90.014,210.22 90,205.234 C89.989,200.975 90.276,196.714 90.864,192.496 C91.37,188.868 92.096,185.27 93.043,181.732 C94.017,178.087 95.223,174.504 96.652,171.011 C99.059,165.113 102.102,159.477 105.702,154.22 C107.002,152.325 108.374,150.474 109.817,148.683 C110.534,147.785 111.274,146.905 112.025,146.036 L112.185,145.853 L112.798,145.389 L113.547,145.206 C113.797,145.248 114.05,145.291 114.303,145.336 z M154.764,155.576 C153.729,155.601 152.601,155.615 151.566,155.708 C150.511,155.801 149.8,155.925 148.765,156.138 C148.317,156.231 147.873,156.321 147.431,156.439 C147.018,156.549 146.613,156.681 146.208,156.819 C145.826,156.948 145.443,157.086 145.072,157.241 C144.473,157.488 144.003,157.719 143.46,158.026 C143.3,158.116 143.137,158.206 142.982,158.304 C142.6,158.54 142.389,158.706 142.023,158.971 L141.427,159.26 C140.85,159.319 140.67,159.412 140.119,159.159 C139.919,159.066 139.756,158.906 139.573,158.779 L120.752,139.955 L120.327,139.311 L120.198,138.552 L120.381,137.804 L120.845,137.191 C121.278,136.814 121.714,136.443 122.153,136.071 C123.033,135.332 123.927,134.609 124.833,133.906 C127.564,131.785 130.413,129.819 133.366,128.025 C137.048,125.789 140.89,123.817 144.852,122.132 C148.554,120.56 152.359,119.236 156.24,118.175 C161.103,116.845 166.076,115.931 171.093,115.436 C172.913,115.256 174.741,115.132 176.569,115.065 C177.536,115.028 178.504,115.008 179.471,115.003 C179.719,115 179.969,115 180.217,115 C181.156,115.003 182.096,115.02 183.032,115.051 C183.893,115.079 184.753,115.118 185.611,115.172 C185.895,115.191 186.182,115.208 186.466,115.228 C186.542,115.233 186.815,115.253 186.891,115.262 C186.894,115.262 186.896,115.262 186.896,115.262 C186.896,115.262 186.896,115.262 186.896,115.262 C187,115.27 187.105,115.276 187.209,115.284 C187.524,115.309 187.839,115.337 188.154,115.366 C193.126,115.813 198.059,116.673 202.885,117.942 C206.86,118.985 210.76,120.302 214.555,121.882 C218.304,123.443 221.943,125.263 225.447,127.316 C228.693,129.22 231.82,131.329 234.802,133.624 C236.236,134.727 237.637,135.874 239.004,137.061 L239.155,137.191 L239.619,137.807 L239.802,138.552 L239.673,139.311 L239.248,139.955 L220.427,158.779 L219.873,159.162 C219.656,159.218 219.445,159.311 219.223,159.328 C218.61,159.373 218.475,159.215 217.955,158.954 L217.904,158.917 L217.963,158.948 L217.814,158.864 L216.52,158.059 L215.277,157.398 C214.045,156.912 213.708,156.738 212.395,156.397 C211.348,156.124 210.139,155.925 209.07,155.793 C208.46,155.719 207.852,155.655 207.239,155.618 C206.575,155.582 205.909,155.59 205.242,155.576 L154.764,155.576 z" fill="#CCCCCC" id="logo-outline2-0-4-3-2-2"/>
<g id="logo-rounded2-0-2-6-8-3">
<path d="M267.427,193.992 C267.877,197.598 268.11,201.271 268.11,205 C268.11,227.16 259.909,247.421 246.381,262.912 L225.4,241.928 L225.678,240.35 L225.864,238.728 L226.001,237.009 L226.049,235.249 L226.049,228.251 C239.777,216.762 253.578,205.349 267.427,193.992 z" fill="url(#Gradient_2)" id="path45-6-7-1-2-3"/>
<path d="M246.389,147.096 C257.648,159.989 265.213,176.189 267.432,194.037 L226.049,228.296 L226.049,174.653 L226.001,172.893 L225.909,171.174 L225.723,169.504 L225.585,168.716 L225.445,167.974 L246.389,147.096 z" fill="url(#Gradient_3)" id="path47-1-7-5-5-4"/>
<path d="M186.711,117.143 C188.486,117.278 190.243,117.464 191.987,117.703 L218.81,157.255 L217.465,156.42 L216.073,155.677 L214.543,155.075 L212.873,154.563 L211.154,154.192 L209.298,153.917 L207.352,153.731 L205.262,153.683 L154.738,153.683 L153.02,153.731 L151.397,153.824 L149.867,154.009 L148.382,154.285 L146.942,154.611 L145.598,155.028 L144.346,155.492 L143.14,156.048 L142.535,156.375 L141.978,156.698 L141.421,157.069 L140.912,157.441 C155.09,143.904 170.111,130.449 186.711,117.143 z M191.987,117.703 C209.433,120.079 225.265,127.572 237.912,138.619 L219.088,157.441 L218.903,157.303 L218.81,157.255 L191.987,117.703 z" fill="url(#Gradient_4)" id="path49-3-9-4-3-1"/>
<path d="M122.088,138.619 C137.579,125.091 157.841,116.89 180,116.89 C182.27,116.89 184.523,116.977 186.75,117.146 L140.912,157.441 L122.088,138.619 z" fill="url(#Gradient_5)" id="path51-8-3-2-6-1"/>
<path d="M237.94,271.358 C228.907,279.253 218.25,285.334 206.542,289.035 L188.235,256.311 L205.217,256.311 L207.723,256.219 L210.04,255.94 L211.154,255.707 L212.223,255.476 L213.289,255.15 L214.265,254.826 L214.912,254.593 L215.561,254.317 L216.166,254.039 L216.768,253.713 L217.325,253.389 L217.882,253.063 L218.439,252.74 L218.95,252.368 L237.94,271.358 z" fill="url(#Gradient_6)" id="path53-9-1-0-1-3"/>
<path d="M206.618,289.01 C198.217,291.673 189.276,293.107 180,293.107 C163.904,293.107 148.812,288.785 135.822,281.233 L159.747,256.356 L188.3,256.311 L206.618,289.01 z M133.858,280.06 C129.687,277.487 125.747,274.579 122.074,271.37 L133.858,259.56 L133.858,280.06 z" fill="url(#Gradient_7)" id="path55-3-9-9-8-8"/>
<path d="M109.035,257.206 C115.979,226.924 123.359,196.568 134.556,167.974 L134.37,168.902 L134.23,169.83 L134.092,170.803 L133.999,171.779 L133.906,174.653 L133.906,242.578 L113.597,262.887 C112,261.059 110.478,259.163 109.035,257.206 z" fill="url(#Gradient_8)" id="path57-4-8-7-6-7"/>
<path d="M134.556,167.974 L109.1,257.29 C98.286,242.66 91.893,224.572 91.893,205 C91.893,182.843 100.089,162.585 113.611,147.096 L134.556,167.974 z" fill="url(#Gradient_9)" id="path59-4-6-3-2-4"/>
</g>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="130" height="130" viewBox="0, 0, 130, 130">
<g id="Background">
<rect x="0" y="0" width="130" height="130" fill="#000000" fill-opacity="0"/>
</g>
<defs>
<linearGradient id="Gradient_1" gradientUnits="userSpaceOnUse" x1="-0" y1="0" x2="1" y2="0" gradientTransform="matrix(-10.879, 51.573, -55.925, -10.033, 115.314, 55.906)">
<stop offset="0" stop-color="#FF2F00"/>
<stop offset="0.07" stop-color="#FF2F00"/>
<stop offset="1" stop-color="#FF8400"/>
</linearGradient>
<linearGradient id="Gradient_2" gradientUnits="userSpaceOnUse" x1="-0" y1="0" x2="1" y2="0" gradientTransform="matrix(24.87, 0, 0, 24.689, 97.286, 52.662)">
<stop offset="0" stop-color="#FF2F00"/>
<stop offset="1" stop-color="#FF8900"/>
</linearGradient>
<linearGradient id="Gradient_3" gradientUnits="userSpaceOnUse" x1="0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(68.978, 0, 0, 70.77, 37.204, 17.652)">
<stop offset="0" stop-color="#2147A0"/>
<stop offset="1" stop-color="#00F2A1"/>
</linearGradient>
<linearGradient id="Gradient_4" gradientUnits="userSpaceOnUse" x1="-0" y1="0" x2="1" y2="0" gradientTransform="matrix(45.982, 0, 0, 51.587, 23.818, 17.568)">
<stop offset="0" stop-color="#204EA0"/>
<stop offset="1" stop-color="#01F0A1"/>
</linearGradient>
<linearGradient id="Gradient_5" gradientUnits="userSpaceOnUse" x1="-0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(20.249, 34.848, -33.693, 20.943, 78.418, 93.962)">
<stop offset="0" stop-color="#F0C209"/>
<stop offset="0.14" stop-color="#F0C209"/>
<stop offset="0.63" stop-color="#DE920A"/>
<stop offset="1" stop-color="#D67C0B"/>
</linearGradient>
<linearGradient id="Gradient_6" gradientUnits="userSpaceOnUse" x1="-0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(26.051, 45.434, -43.36, 27.297, 40.828, 90.812)">
<stop offset="0" stop-color="#F0C209"/>
<stop offset="0.14" stop-color="#F0C209"/>
<stop offset="1" stop-color="#D4760B"/>
</linearGradient>
<linearGradient id="Gradient_7" gradientUnits="userSpaceOnUse" x1="0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(-35.942, 54.407, -51.313, -38.109, 41.57, 45.214)">
<stop offset="0" stop-color="#B1115D"/>
<stop offset="0.14" stop-color="#B1115D"/>
<stop offset="1" stop-color="#D72881"/>
</linearGradient>
<linearGradient id="Gradient_8" gradientUnits="userSpaceOnUse" x1="-0" y1="-0" x2="1" y2="-0" gradientTransform="matrix(25.635, 0, 0, 22.663, 7.08, 62.99)">
<stop offset="0" stop-color="#B1115D"/>
<stop offset="1" stop-color="#D62881"/>
</linearGradient>
</defs>
<g id="Layer_1">
<path d="M93.26,97.462 L93.648,97.732 L107.152,111.236 L107.452,111.694 L107.546,112.234 L107.416,112.766 L107.086,113.202 C106.47,113.736 105.848,114.262 105.216,114.774 C104.052,115.716 102.856,116.616 101.63,117.474 C98.04,119.986 94.194,122.128 90.17,123.852 C88.9,124.398 87.612,124.9 86.308,125.36 C85.85,125.522 85.39,125.68 84.93,125.83 C84.732,125.896 84.534,125.96 84.336,126.022 C84.336,126.022 84.336,126.02 84.336,126.02 C84.334,126.022 84.334,126.022 84.332,126.024 C84.316,126.028 84.298,126.034 84.282,126.04 C84.28,126.04 84.278,126.04 84.276,126.04 C84.276,126.04 84.278,126.04 84.278,126.04 C83.992,126.132 83.706,126.218 83.42,126.304 C82.798,126.492 82.172,126.67 81.544,126.838 C79.692,127.332 77.818,127.744 75.928,128.068 C72.476,128.664 68.976,128.972 65.472,128.998 C63.058,129.016 60.642,128.9 58.24,128.646 C55.688,128.378 53.154,127.956 50.652,127.382 C46.892,126.52 43.21,125.312 39.666,123.782 C38.172,123.136 36.702,122.434 35.26,121.676 C34.542,121.298 33.832,120.906 33.13,120.502 L33.018,120.438 L32.91,120.374 L32.44,120.082 L31.972,119.81 C31.766,119.696 31.656,119.618 31.482,119.52 C31.478,119.518 31.202,119.346 31.2,119.344 C30.964,119.198 30.728,119.048 30.494,118.898 C29.934,118.538 29.378,118.17 28.83,117.792 C27.504,116.882 26.214,115.922 24.96,114.916 C24.312,114.396 23.676,113.862 23.048,113.318 L22.924,113.21 L22.594,112.774 L22.464,112.244 L22.556,111.704 L22.856,111.246 L31.236,102.848 L31.672,102.556 L32.188,102.452 L32.702,102.554 L33.14,102.846 L33.432,103.282 L33.534,103.798 L33.534,117.322 L49.63,100.588 L50.07,100.284 L50.596,100.176 L70.856,100.142 L82.906,100.142 L84.608,100.08 C85.12,100.018 85.634,99.972 86.146,99.896 C86.39,99.858 86.632,99.794 86.874,99.744 C87.578,99.594 87.58,99.6 88.264,99.382 C88.42,99.332 89.108,99.104 89.336,99.014 C89.494,98.952 89.956,98.748 90.116,98.668 C90.386,98.532 90.606,98.398 90.864,98.248 C90.996,98.17 91.128,98.094 91.26,98.016 C91.374,97.95 91.49,97.89 91.598,97.82 C91.704,97.75 91.804,97.67 91.906,97.596 L92.332,97.388 L92.802,97.342 C92.956,97.382 93.108,97.422 93.26,97.462 z M112.788,22.61 C112.934,22.72 113.084,22.824 113.224,22.94 C113.26,22.97 113.286,23.012 113.318,23.048 C113.414,23.158 113.51,23.268 113.604,23.38 C113.856,23.674 114.108,23.972 114.354,24.272 C115.128,25.208 115.876,26.166 116.596,27.146 C119.434,31.008 121.84,35.186 123.746,39.582 C125.368,43.322 126.63,47.218 127.506,51.2 C127.788,52.482 128.03,53.774 128.232,55.072 C128.304,55.524 128.37,55.976 128.43,56.43 C128.45,56.582 128.47,56.734 128.49,56.886 C128.496,56.936 128.504,56.988 128.508,57.04 C128.508,57.04 128.508,57.038 128.508,57.038 C128.54,57.282 128.568,57.528 128.596,57.772 C128.656,58.306 128.708,58.84 128.756,59.374 C128.904,61.076 128.984,62.786 128.998,64.496 C129.028,68.37 128.712,72.246 128.046,76.062 C127.374,79.908 126.348,83.692 124.982,87.35 C123.272,91.932 121.032,96.314 118.322,100.386 C117.318,101.896 116.252,103.362 115.124,104.78 C114.578,105.466 114.02,106.138 113.448,106.802 L113.332,106.934 L113.22,107.064 L112.784,107.396 L112.252,107.526 L111.712,107.432 L111.254,107.132 L96.332,92.212 C96.248,92.096 96.146,91.992 96.082,91.864 C96.018,91.736 95.974,91.596 95.952,91.454 C95.894,91.056 96.114,90.152 96.15,89.944 L96.274,88.852 C96.37,87.674 96.37,87.674 96.4,86.492 L96.4,43.438 C96.38,42.654 96.37,41.84 96.306,41.056 C96.274,40.686 96.23,40.318 96.182,39.95 C96.164,39.814 96.018,39.048 95.994,38.918 L95.984,38.484 C96.112,38.072 96.114,38.068 96.366,37.718 L111.26,22.87 L111.718,22.572 L112.256,22.48 C112.434,22.522 112.61,22.566 112.788,22.61 z M18.282,22.572 L18.74,22.87 L33.634,37.718 C33.718,37.836 33.824,37.942 33.89,38.074 C33.954,38.206 33.998,38.35 34.018,38.494 C34.06,38.822 33.936,39.262 33.878,39.562 L33.784,40.184 C33.692,40.82 33.692,40.82 33.63,41.46 L33.566,43.442 L33.566,91.722 L33.464,92.236 L33.172,92.672 L18.73,107.116 L18.272,107.416 L17.734,107.508 L17.202,107.378 L16.766,107.048 C16.266,106.474 15.776,105.894 15.298,105.304 C14.886,104.798 14.482,104.286 14.088,103.766 C13.956,103.594 13.824,103.42 13.694,103.246 C13.662,103.202 13.63,103.158 13.596,103.114 C13.564,103.072 13.532,103.028 13.5,102.986 C13.5,102.986 13.502,102.986 13.502,102.986 C13.47,102.944 13.438,102.902 13.408,102.86 C13.378,102.818 13.346,102.776 13.316,102.734 C13.224,102.61 13.134,102.484 13.044,102.358 C12.742,101.94 12.444,101.516 12.152,101.09 C9.51,97.23 7.292,93.082 5.554,88.738 C3.88,84.556 2.654,80.196 1.902,75.754 C1.308,72.258 1.01,68.712 1,65.166 C0.992,62.138 1.196,59.108 1.614,56.108 C1.974,53.528 2.49,50.97 3.164,48.454 C3.856,45.862 4.714,43.314 5.73,40.83 C7.442,36.636 9.606,32.628 12.166,28.89 C13.09,27.542 14.066,26.226 15.092,24.952 C15.602,24.314 16.128,23.688 16.662,23.07 L16.776,22.94 L17.212,22.61 L17.744,22.48 C17.922,22.51 18.102,22.54 18.282,22.572 z M47.054,29.854 C46.318,29.872 45.516,29.882 44.78,29.948 C44.03,30.014 43.524,30.102 42.788,30.254 C42.47,30.32 42.154,30.384 41.84,30.468 C41.546,30.546 41.258,30.64 40.97,30.738 C40.698,30.83 40.426,30.928 40.162,31.038 C39.736,31.214 39.402,31.378 39.016,31.596 C38.902,31.66 38.786,31.724 38.676,31.794 C38.404,31.962 38.254,32.08 37.994,32.268 L37.57,32.474 C37.16,32.516 37.032,32.582 36.64,32.402 C36.498,32.336 36.382,32.222 36.252,32.132 L22.868,18.746 L22.566,18.288 L22.474,17.748 L22.604,17.216 L22.934,16.78 C23.242,16.512 23.552,16.248 23.864,15.984 C24.49,15.458 25.126,14.944 25.77,14.444 C27.712,12.936 29.738,11.538 31.838,10.262 C34.456,8.672 37.188,7.27 40.006,6.072 C42.638,4.954 45.344,4.012 48.104,3.258 C51.562,2.312 55.098,1.662 58.666,1.31 C59.96,1.182 61.26,1.094 62.56,1.046 C63.248,1.02 63.936,1.006 64.624,1.002 C64.8,1 64.978,1 65.154,1 C65.822,1.002 66.49,1.014 67.156,1.036 C67.768,1.056 68.38,1.084 68.99,1.122 C69.192,1.136 69.396,1.148 69.598,1.162 C69.652,1.166 69.846,1.18 69.9,1.186 C69.902,1.186 69.904,1.186 69.904,1.186 C69.904,1.186 69.904,1.186 69.904,1.186 C69.978,1.192 70.052,1.196 70.126,1.202 C70.35,1.22 70.574,1.24 70.798,1.26 C74.334,1.578 77.842,2.19 81.274,3.092 C84.1,3.834 86.874,4.77 89.572,5.894 C92.238,7.004 94.826,8.298 97.318,9.758 C99.626,11.112 101.85,12.612 103.97,14.244 C104.99,15.028 105.986,15.844 106.958,16.688 L107.066,16.78 L107.396,17.218 L107.526,17.748 L107.434,18.288 L107.132,18.746 L93.748,32.132 L93.354,32.404 C93.2,32.444 93.05,32.51 92.892,32.522 C92.456,32.554 92.36,32.442 91.99,32.256 L91.954,32.23 L91.996,32.252 L91.89,32.192 L90.97,31.62 L90.086,31.15 C89.21,30.804 88.97,30.68 88.036,30.438 C87.292,30.244 86.432,30.102 85.672,30.008 C85.238,29.956 84.806,29.91 84.37,29.884 C83.898,29.858 83.424,29.864 82.95,29.854 L47.054,29.854 z" fill="#CCCCCC" id="logo-outline2-0"/>
<g id="logo-rounded2-0">
<path d="M127.17,57.172 C127.49,59.736 127.656,62.348 127.656,65 C127.656,80.758 121.824,95.166 112.204,106.182 L97.284,91.26 L97.482,90.138 L97.614,88.984 L97.712,87.762 L97.746,86.51 L97.746,81.534 C107.508,73.364 117.322,65.248 127.17,57.172 z" fill="url(#Gradient_1)" id="path45-6"/>
<path d="M112.21,23.824 C120.216,32.992 125.596,44.512 127.174,57.204 L97.746,81.566 L97.746,43.42 L97.712,42.168 L97.646,40.946 L97.514,39.758 L97.416,39.198 L97.316,38.67 L112.21,23.824 z" fill="url(#Gradient_2)" id="path47-1"/>
<path d="M69.772,2.524 C71.034,2.62 72.284,2.752 73.524,2.922 L92.598,31.048 L91.642,30.454 L90.652,29.926 L89.564,29.498 L88.376,29.134 L87.154,28.87 L85.834,28.674 L84.45,28.542 L82.964,28.508 L47.036,28.508 L45.814,28.542 L44.66,28.608 L43.572,28.74 L42.516,28.936 L41.492,29.168 L40.536,29.464 L39.646,29.794 L38.788,30.19 L38.358,30.422 L37.962,30.652 L37.566,30.916 L37.204,31.18 C47.286,21.554 57.968,11.986 69.772,2.524 z M73.524,2.922 C85.93,4.612 97.188,9.94 106.182,17.796 L92.796,31.18 L92.664,31.082 L92.598,31.048 L73.524,2.922 z" fill="url(#Gradient_3)" id="path49-3"/>
<path d="M23.818,17.796 C34.834,8.176 49.242,2.344 65,2.344 C66.614,2.344 68.216,2.406 69.8,2.526 L37.204,31.18 L23.818,17.796 z" fill="url(#Gradient_4)" id="path51-8"/>
<path d="M106.202,112.188 C99.778,117.802 92.2,122.126 83.874,124.758 L70.856,101.488 L82.932,101.488 L84.714,101.422 L86.362,101.224 L87.154,101.058 L87.914,100.894 L88.672,100.662 L89.366,100.432 L89.826,100.266 L90.288,100.07 L90.718,99.872 L91.146,99.64 L91.542,99.41 L91.938,99.178 L92.334,98.948 L92.698,98.684 L106.202,112.188 z" fill="url(#Gradient_5)" id="path53-9"/>
<path d="M83.928,124.74 C77.954,126.634 71.596,127.654 65,127.654 C53.554,127.654 42.822,124.58 33.584,119.21 L50.598,101.52 L70.902,101.488 L83.928,124.74 z M32.188,118.376 C29.222,116.546 26.42,114.478 23.808,112.196 L32.188,103.798 L32.188,118.376 z" fill="url(#Gradient_6)" id="path55-3"/>
<path d="M14.536,102.124 C19.474,80.59 24.722,59.004 32.684,38.67 L32.552,39.33 L32.452,39.99 L32.354,40.682 L32.288,41.376 L32.222,43.42 L32.222,91.722 L17.78,106.164 C16.644,104.864 15.562,103.516 14.536,102.124 z" fill="url(#Gradient_7)" id="path57-4"/>
<path d="M32.684,38.67 L14.582,102.184 C6.892,91.78 2.346,78.918 2.346,65 C2.346,49.244 8.174,34.838 17.79,23.824 L32.684,38.67 z" fill="url(#Gradient_8)" id="path59-4"/>
</g>
</g>
</svg>
@media screen {
.icon-ocsstore {
background-image: url(app-icons/ocsstore.svg);
.icon-opendesktop-app {
background-image: url(app-icons/opendesktop-app.svg);
}
.icon-chevron-left {
......
......@@ -18,7 +18,7 @@
</body>
<script>
require('import-export'); // Polyfill to use ES6 modules syntax in nodejs
require('js/utility/utility.js');
require('./libs/js/utility/utility.js');
require('./scripts/renderers/window-renderer.js');
</script>
</html>
This diff is collapsed.
'use strict';
/**
* js
*
* @author Akira Ohgaki <akiraohgaki@gmail.com>
* @copyright Akira Ohgaki
* @license https://opensource.org/licenses/BSD-2-Clause
* @link https://github.com/akiraohgaki/js
*/
/**
* Base class of component classes
*/
export default class Component {
constructor(element, state) {
// "element" will be Element object or selector string
if (typeof element === 'string') {
element = document.querySelector(element);
}
this.element = element ? element : document.createElement('div');
this.innerHTML = this.element.innerHTML;
this.state = state;
this.init();
this._build();
this.complete();
}
/**
* Build the component
* Subclass should not override this class method
*/
_build() {
const html = this.html();
const style = this.style();
this.element.innerHTML = style ? `<style scoped>${style}</style>${html}` : html;
this.script();
}
/**
* Update the component
* Subclass should not override this class method
*/
update(state) {
this.state = state;
this._build();
}
/**
* Alternative constructor for subclass
*/
init() {}
/**
* A class mehod to be called when the component initialization finished
*/
complete() {}
/**
* Render HTML content
*/
html() {
return '';
}
/**
* Render CSS content
*/
style() {
return '';
}
/**
* Script for the component
*/
script() {}
}
# js
Javascript library.
Copyright: Akira Ohgaki
License: BSD-2-Clause
'use strict';
/**
* js
*
* @author Akira Ohgaki <akiraohgaki@gmail.com>
* @copyright Akira Ohgaki
* @license https://opensource.org/licenses/BSD-2-Clause
* @link https://github.com/akiraohgaki/js
*/
/**
* Status manager
*/
export default class StatusManager {
constructor(eventTarget) {
// "eventTarget" will be Element object or selector string
if (typeof eventTarget === 'string') {
eventTarget = document.querySelector(eventTarget);
}
this._eventTarget = eventTarget ? eventTarget : document;
this._eventListener = (event) => {
event.preventDefault();
event.stopPropagation();
const params = event.detail ? event.detail : {};
this.dispatch(event.type, params);
};
this._status = new Map();
this._actions = new Map();
this._views = new Map();
}
/**
* Get all status
*/
getStatus() {
return this._status;
}
/**
* Get specified state
*/
getState(type) {
return this._status.get(type);
}
/**
* Register action handler
*/
registerAction(type, action, options) {
const actions = this._actions.has(type) ? this._actions.get(type) : new Map();
if (!actions.size) {
this._status.set(type, {});
this._eventTarget.addEventListener(type, this._eventListener, false);
}
actions.set(action, options);
this._actions.set(type, actions);
}
/**
* Unregister action handler
*/
unregisterAction(type, action) {
if (this._actions.has(type)) {
const actions = this._actions.get(type);
if (actions.has(action)) {
actions.delete(action);
if (actions.size) {
this._actions.set(type, actions);
}
else {
this._actions.delete(type);
this._status.delete(type);
this._eventTarget.removeEventListener(type, this._eventListener, false);
}
}
}
}
/**
* Register view handler
*/
registerView(type, view, options) {
const views = this._views.has(type) ? this._views.get(type) : new Map();
views.set(view, options);
this._views.set(type, views);
}
/**
* Unregister view handler
*/
unregisterView(type, view) {
if (this._views.has(type)) {
const views = this._views.get(type);
if (views.has(view)) {
views.delete(view);
if (views.size) {
this._views.set(type, views);
}
else {
this._views.delete(type);
}
}
}
}
/**
* Dispatching
*/
dispatch(type, params) {
if (!this._actions.has(type)) {
console.error(new Error(`No actions for type "${type}"`));
return;
}
const actions = this._actions.get(type);
const promises = [];
for (const [action, options] of actions) {
promises.push(new Promise((resolve, reject) => {
action(resolve, reject, params, options);
}));
}
Promise.all(promises)
.then((status) => {
const state = {};
for (const _state of status) {
Object.assign(state, _state);
}
this._status.set(type, state);
if (!this._views.has(type)) {
console.log(`No views for type "${type}"`); // It's not error
return;
}
const views = this._views.get(type);
for (const [view, options] of views) {
view(state, options);
}
})
.catch((error) => {
console.error(error);
});
}
}
/**
* js
*
* @author Akira Ohgaki <akiraohgaki@gmail.com>
* @copyright Akira Ohgaki
* @license https://opensource.org/licenses/BSD-2-Clause
* @link https://github.com/akiraohgaki/js
*/
(function(self) {
'use strict';
if (!self.js) {
self.js = {};
}
if (!self.js.media) {
self.js.media = {};
}
/**
* HTMLAudioElement wrapper
*/
self.js.media.audio = {
element: null,
config: {
autoplay: false
},
init: function(successCallback, errorCallback) {
if (typeof successCallback !== 'function') {
successCallback = function(result) {};
}
if (typeof errorCallback !== 'function') {
errorCallback = function(error) {};
}
var promise = null;
var resolve = function(result) {};
var reject = function(error) {};
if (window.Promise) {
promise = new Promise(function(_resolve, _reject) {
resolve = _resolve;
reject = _reject;
});
}
if (window.HTMLAudioElement) {
this.element = new Audio('');
this.element.autoplay = this.config.autoplay;
successCallback(this.element);
resolve(this.element);
}
else {
var error = new Error('HTMLAudioElement is not supported');
errorCallback(error);
reject(error);
}
return promise;
},
canPlayType: function(type) {
return this.element.canPlayType(type);
},
load: function(src) {
this.element.src = src;
},
play: function() {
this.element.play();
},
pause: function() {
this.element.pause();
},
stop: function() {
this.element.pause();
this.element.currentTime = 0;
},
go: function(time) {
time = parseFloat(time);
if (time >= 0) {
this.element.currentTime = time;
}
},
forward: function(time) {
time = parseFloat(time);
if (time > 0) {
this.element.currentTime += time;
}
},
rewind: function(time) {
time = parseFloat(time);
if (time > 0) {
this.element.currentTime -= time;
}
},
rateup: function(rate) {
rate = parseFloat(rate);
if (rate > 0) {
this.element.play();
this.element.playbackRate += rate;
}
},
ratedown: function(rate) {
rate = parseFloat(rate);
if (rate > 0) {
this.element.play();
this.element.playbackRate -= rate;
}
},
getCurrentSrc: function() {
return this.element.currentSrc;
},
getDuration: function() {
return this.element.duration;
},
getCurrentTime: function() {
<