Release Vulpes OS Preview 26 with Gecko 161.0 and Tundra 0.2.0
This commit is contained in:
parent
3a1fba4efe
commit
e241a42d2f
19 changed files with 1305 additions and 331 deletions
|
|
@ -860,7 +860,7 @@ this.metadata.set([{id:id,icon:blob}]).then(()=>{},(e)=>{console.error('Error sa
|
|||
icon.addEventListener('activated',e=>{e.preventDefault();this.handleEvent({type:'activate',detail:{target:e.target.parentNode},preventDefault:()=>{}});});},refreshIcon:function(icon){icon.size=this.iconSize?this.iconSize:icon.size;if(icon.bookmark){IconsHelper.setElementIcon(icon,this.iconSize).then(()=>{},e=>{console.error('Error refreshing bookmark icon',e);if(!icon.isUserSet){icon.refresh();}});}else{icon.refresh();}},storeAppOrder:function(){var storedOrders=[];var children=this.icons.children;for(var i=0,iLen=children.length;i<iLen;i++){var appIcon=children[i].firstElementChild;var id=this.getIconId(appIcon.app?appIcon.app:appIcon.bookmark,appIcon.entryPoint);storedOrders.push({id:id,order:i});}
|
||||
this.metadata.set(storedOrders).then(()=>{},(e)=>{console.error('Error storing app order',e);});},iconAdded:function(container){if(container.style.display==='none'){return;}
|
||||
this.refreshGridSize();},refreshGridSize:function(){var children=this.icons.children;var cols=document.documentElement.dataset.vulpesLayout==='compact'?3:(this.settings.small?4:3);var visibleChildren=0;var firstVisibleChild=-1;for(var i=0,iLen=children.length;i<iLen;i++){if(children[i].style.display!=='none'){visibleChildren++;if(firstVisibleChild===-1){firstVisibleChild=i;this.iconsLeft=this.icons.getChildOffsetRect(children[i]).left;}else if(visibleChildren===cols){this.iconsRight=this.icons.getChildOffsetRect(children[i]).right;}}}
|
||||
if(visibleChildren<1){this.pendingGridHeight=this.gridHeight=0;this.pageHeight=this.scrollable.clientHeight;}else{var iconHeight=Math.round(children[firstVisibleChild].offsetHeight);var scrollHeight=this.scrollable.clientHeight;var rowsPerPage=Math.floor(scrollHeight/iconHeight);var pageHeight=rowsPerPage*iconHeight;var gridHeight;if(this.settings.scrollSnapping){gridHeight=(Math.ceil((iconHeight*Math.ceil(visibleChildren/cols))/pageHeight)*pageHeight)+(scrollHeight-pageHeight);}else{gridHeight=(Math.ceil(visibleChildren/cols)+1)*iconHeight;}
|
||||
if(visibleChildren<1){this.pendingGridHeight=this.gridHeight=0;this.pageHeight=this.scrollable.clientHeight;}else{var iconHeight=Math.round(children[firstVisibleChild].offsetHeight);var scrollHeight=this.scrollable.clientHeight;var rowsPerPage=Math.floor(scrollHeight/iconHeight);var pageHeight=rowsPerPage*iconHeight;var gridHeight;if(this.settings.scrollSnapping){gridHeight=(Math.ceil((iconHeight*Math.ceil(visibleChildren/cols))/pageHeight)*pageHeight)+(scrollHeight-pageHeight);}else{gridHeight=Math.ceil(visibleChildren/cols)*iconHeight;}
|
||||
this.pageHeight=pageHeight;this.pendingGridHeight=gridHeight;this.iconsPerPage=rowsPerPage*cols;if(!this.visualLoadComplete&&Math.floor(visibleChildren/cols)*iconHeight>=scrollHeight){this.onVisualLoad();}}
|
||||
this.scrollable.style.scrollSnapPointsY=`repeat(${this.pageHeight}px)`;this.icons.style.backgroundSize='100% '+(this.pageHeight*2)+'px';if(this.resizeTimeout!==null){clearTimeout(this.resizeTimeout);}
|
||||
var setGridHeight=()=>{this.resizeTimeout=null;this.icons.style.height=gridHeight+'px';this.gridHeight=this.pendingGridHeight;};if(this.pendingGridHeight>this.gridHeight){setGridHeight();}else if(this.pendingGridHeight!==this.gridHeight){this.resizeTimeout=setTimeout(setGridHeight,RESIZE_TIMEOUT);}},snapScrollPosition:function(bias){bias=bias||0;var gridHeight=this.pendingGridHeight;var currentScroll=this.scrollable.scrollTop;var scrollHeight=this.scrollable.clientHeight;var destination;if(this.settings.scrollSnapping){destination=Math.min(gridHeight-scrollHeight,Math.round(currentScroll/this.pageHeight+bias)*this.pageHeight);}else{destination=Math.min(gridHeight-scrollHeight,currentScroll+(this.pageHeight*bias));}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ this.metadata.set([{id:id,icon:blob}]).then(()=>{},(e)=>{console.error('Error sa
|
|||
icon.addEventListener('activated',e=>{e.preventDefault();this.handleEvent({type:'activate',detail:{target:e.target.parentNode},preventDefault:()=>{}});});},refreshIcon:function(icon){icon.size=this.iconSize?this.iconSize:icon.size;if(icon.bookmark){IconsHelper.setElementIcon(icon,this.iconSize).then(()=>{},e=>{console.error('Error refreshing bookmark icon',e);if(!icon.isUserSet){icon.refresh();}});}else{icon.refresh();}},storeAppOrder:function(){var storedOrders=[];var children=this.icons.children;for(var i=0,iLen=children.length;i<iLen;i++){var appIcon=children[i].firstElementChild;var id=this.getIconId(appIcon.app?appIcon.app:appIcon.bookmark,appIcon.entryPoint);storedOrders.push({id:id,order:i});}
|
||||
this.metadata.set(storedOrders).then(()=>{},(e)=>{console.error('Error storing app order',e);});},iconAdded:function(container){if(container.style.display==='none'){return;}
|
||||
this.refreshGridSize();},refreshGridSize:function(){var children=this.icons.children;var cols=this.settings.small?4:3;var visibleChildren=0;var firstVisibleChild=-1;for(var i=0,iLen=children.length;i<iLen;i++){if(children[i].style.display!=='none'){visibleChildren++;if(firstVisibleChild===-1){firstVisibleChild=i;this.iconsLeft=this.icons.getChildOffsetRect(children[i]).left;}else if(visibleChildren===cols){this.iconsRight=this.icons.getChildOffsetRect(children[i]).right;}}}
|
||||
if(visibleChildren<1){this.pendingGridHeight=this.gridHeight=0;this.pageHeight=this.scrollable.clientHeight;}else{var iconHeight=Math.round(children[firstVisibleChild].offsetHeight);var scrollHeight=this.scrollable.clientHeight;var rowsPerPage=Math.floor(scrollHeight/iconHeight);var pageHeight=rowsPerPage*iconHeight;var gridHeight;if(this.settings.scrollSnapping){gridHeight=(Math.ceil((iconHeight*Math.ceil(visibleChildren/cols))/pageHeight)*pageHeight)+(scrollHeight-pageHeight);}else{gridHeight=(Math.ceil(visibleChildren/cols)+1)*iconHeight;}
|
||||
if(visibleChildren<1){this.pendingGridHeight=this.gridHeight=0;this.pageHeight=this.scrollable.clientHeight;}else{var iconHeight=Math.round(children[firstVisibleChild].offsetHeight);var scrollHeight=this.scrollable.clientHeight;var rowsPerPage=Math.floor(scrollHeight/iconHeight);var pageHeight=rowsPerPage*iconHeight;var gridHeight;if(this.settings.scrollSnapping){gridHeight=(Math.ceil((iconHeight*Math.ceil(visibleChildren/cols))/pageHeight)*pageHeight)+(scrollHeight-pageHeight);}else{gridHeight=Math.ceil(visibleChildren/cols)*iconHeight;}
|
||||
this.pageHeight=pageHeight;this.pendingGridHeight=gridHeight;this.iconsPerPage=rowsPerPage*cols;if(!this.visualLoadComplete&&Math.floor(visibleChildren/cols)*iconHeight>=scrollHeight){this.onVisualLoad();}}
|
||||
this.scrollable.style.scrollSnapPointsY=`repeat(${this.pageHeight}px)`;this.icons.style.backgroundSize='100% '+(this.pageHeight*2)+'px';if(this.resizeTimeout!==null){clearTimeout(this.resizeTimeout);}
|
||||
var setGridHeight=()=>{this.resizeTimeout=null;this.icons.style.height=gridHeight+'px';this.gridHeight=this.pendingGridHeight;};if(this.pendingGridHeight>this.gridHeight){setGridHeight();}else if(this.pendingGridHeight!==this.gridHeight){this.resizeTimeout=setTimeout(setGridHeight,RESIZE_TIMEOUT);}},snapScrollPosition:function(bias){bias=bias||0;var gridHeight=this.pendingGridHeight;var currentScroll=this.scrollable.scrollTop;var scrollHeight=this.scrollable.clientHeight;var destination;if(this.settings.scrollSnapping){destination=Math.min(gridHeight-scrollHeight,Math.round(currentScroll/this.pageHeight+bias)*this.pageHeight);}else{destination=Math.min(gridHeight-scrollHeight,currentScroll+(this.pageHeight*bias));}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 3.3 KiB |
|
|
@ -4,7 +4,7 @@
|
|||
"launch_path": "/index.html",
|
||||
"type": "certified",
|
||||
"icons": {
|
||||
"512": "/icon.png"
|
||||
"128": "/icon.png"
|
||||
},
|
||||
"permissions": {
|
||||
"browser": {},
|
||||
|
|
|
|||
|
|
@ -7,17 +7,20 @@
|
|||
|
||||
<div>
|
||||
<header>
|
||||
<h2> Mozilla </h2>
|
||||
<h2> Vulpes / Mozilla </h2>
|
||||
</header>
|
||||
<ul>
|
||||
<li>
|
||||
<a class="menu-item" href="https://vulpes-os.org/system-privacy.php"><span>Vulpes OS</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item privacy-menuitem privacy-browserOS" href="https://www.mozilla.org/privacy/firefox-os/">
|
||||
<span data-l10n-id="brandShortName"></span>
|
||||
<span>Firefox OS (Mozilla)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item privacy-menuitem privacy-marketPlace" href="https://marketplace.firefox.com/privacy-policy">
|
||||
<span>Marketplace</span>
|
||||
<a class="menu-item privacy-menuitem privacy-marketPlace" href="https://vulpes-os.org/privacy.php">
|
||||
<span>Vulpes Marketplace</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@
|
|||
</header>
|
||||
<ul>
|
||||
<li id="developer-infos" class="developer-infos">
|
||||
<a target="_blank" href="http://github.com/mozilla-b2g/gaia/">
|
||||
<a target="_blank" href="https://github.com/mozilla-b2g/gaia/">
|
||||
<span dir="auto">The Gaia Team</span>
|
||||
<small dir="auto">http://github.com/mozilla-b2g/gaia/</small>
|
||||
<small dir="auto">https://github.com/mozilla-b2g/gaia/</small>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<gaia-switch name="browser.private.default">
|
||||
<label data-l10n-id="privateBrowsing"></label>
|
||||
<details data-l10n-id="privateBrowsingDetails"></details>
|
||||
<a href="https://support.mozilla.org/kb/private-browsing-firefox-os" data-l10n-id="learn-more"></a>
|
||||
<a href="https://vulpes-os.org/browser-help.php#private" data-l10n-id="learn-more"></a>
|
||||
</gaia-switch>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
<label data-l10n-id="trackingProtection"></label>
|
||||
<details data-l10n-id="trackingProtectionDetails"></details>
|
||||
<a data-l10n-id="learn-more"
|
||||
href="https://support.mozilla.org/kb/tracking-protection-firefox-os"></a>
|
||||
href="https://vulpes-os.org/browser-help.php#tracking"></a>
|
||||
</gaia-switch>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<p data-l10n-id="crash-reports-description-2"></p>
|
||||
<p>
|
||||
<span data-l10n-id="crash-reports-description-3-start"></span><a
|
||||
href="https://www.mozilla.org/privacy/" data-l10n-id="crash-reports-description-3-privacy" class="link-text"
|
||||
href="https://vulpes-os.org/system-privacy.php#reports" data-l10n-id="crash-reports-description-3-privacy" class="link-text"
|
||||
></a><span data-l10n-id="crash-reports-description-3-end"></span>
|
||||
</p>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
<p data-l10n-id="doNotTrack-dd1"></p>
|
||||
<p data-l10n-id="doNotTrack-dd2"></p>
|
||||
<p>
|
||||
<a href="http://dnt.mozilla.org" data-l10n-id="learn-more" class="link-text"></a>
|
||||
<a href="https://vulpes-os.org/browser-help.php#dnt" data-l10n-id="learn-more" class="link-text"></a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
<span data-l10n-id="findmydevice-settings-description"></span>
|
||||
<br>
|
||||
<br>
|
||||
<a class="link-text" href="https://find.firefox.com">find.firefox.com</a>
|
||||
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
</p>
|
||||
<p class="description">
|
||||
<span data-l10n-id="learn-more-privacy">
|
||||
<a href="http://www.mozilla.org/privacy/firefox-os" class="link-text"></a>
|
||||
<a href="https://vulpes-os.org/system-privacy.php#telemetry" class="link-text"></a>
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -2389,7 +2389,7 @@
|
|||
<span data-l10n-id="findmydevice-settings-description"></span>
|
||||
<br>
|
||||
<br>
|
||||
<a class="link-text" href="https://find.firefox.com">find.firefox.com</a>
|
||||
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -2650,9 +2650,9 @@
|
|||
</header>
|
||||
<ul>
|
||||
<li id="developer-infos" class="developer-infos">
|
||||
<a target="_blank" href="http://github.com/mozilla-b2g/gaia/">
|
||||
<a target="_blank" href="https://github.com/mozilla-b2g/gaia/">
|
||||
<span dir="auto">The Gaia Team</span>
|
||||
<small dir="auto">http://github.com/mozilla-b2g/gaia/</small>
|
||||
<small dir="auto">https://github.com/mozilla-b2g/gaia/</small>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -2719,7 +2719,7 @@
|
|||
<p data-l10n-id="doNotTrack-dd1"></p>
|
||||
<p data-l10n-id="doNotTrack-dd2"></p>
|
||||
<p>
|
||||
<a href="http://dnt.mozilla.org" data-l10n-id="learn-more" class="link-text"></a>
|
||||
<a href="https://vulpes-os.org/browser-help.php#dnt" data-l10n-id="learn-more" class="link-text"></a>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -2741,14 +2741,14 @@
|
|||
<gaia-switch name="browser.private.default">
|
||||
<label data-l10n-id="privateBrowsing"></label>
|
||||
<details data-l10n-id="privateBrowsingDetails"></details>
|
||||
<a href="https://support.mozilla.org/kb/private-browsing-firefox-os" data-l10n-id="learn-more"></a>
|
||||
<a href="https://vulpes-os.org/browser-help.php#private" data-l10n-id="learn-more"></a>
|
||||
</gaia-switch>
|
||||
</li>
|
||||
<li>
|
||||
<gaia-switch name="privacy.trackingprotection.enabled">
|
||||
<label data-l10n-id="trackingProtection"></label>
|
||||
<details data-l10n-id="trackingProtectionDetails"></details>
|
||||
<a data-l10n-id="learn-more" href="https://support.mozilla.org/kb/tracking-protection-firefox-os"></a>
|
||||
<a data-l10n-id="learn-more" href="https://vulpes-os.org/browser-help.php#tracking"></a>
|
||||
</gaia-switch>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -2904,17 +2904,20 @@
|
|||
|
||||
<div>
|
||||
<header>
|
||||
<h2> Mozilla </h2>
|
||||
<h2> Vulpes / Mozilla </h2>
|
||||
</header>
|
||||
<ul>
|
||||
<li>
|
||||
<a class="menu-item" href="https://vulpes-os.org/system-privacy.php"><span>Vulpes OS</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item privacy-menuitem privacy-browserOS" href="https://www.mozilla.org/privacy/firefox-os/">
|
||||
<span data-l10n-id="brandShortName"></span>
|
||||
<span>Firefox OS (Mozilla)</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item privacy-menuitem privacy-marketPlace" href="https://marketplace.firefox.com/privacy-policy">
|
||||
<span>Marketplace</span>
|
||||
<a class="menu-item privacy-menuitem privacy-marketPlace" href="https://vulpes-os.org/privacy.php">
|
||||
<span>Vulpes Marketplace</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -3905,7 +3908,7 @@
|
|||
<p data-l10n-id="crash-reports-description-1"></p>
|
||||
<p data-l10n-id="crash-reports-description-2"></p>
|
||||
<p>
|
||||
<span data-l10n-id="crash-reports-description-3-start"></span><a href="https://www.mozilla.org/privacy/" data-l10n-id="crash-reports-description-3-privacy" class="link-text"></a><span data-l10n-id="crash-reports-description-3-end"></span>
|
||||
<span data-l10n-id="crash-reports-description-3-start"></span><a href="https://vulpes-os.org/system-privacy.php#reports" data-l10n-id="crash-reports-description-3-privacy" class="link-text"></a><span data-l10n-id="crash-reports-description-3-end"></span>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -4009,7 +4012,7 @@
|
|||
</p>
|
||||
<p class="description">
|
||||
<span data-l10n-id="learn-more-privacy">
|
||||
<a href="http://www.mozilla.org/privacy/firefox-os" class="link-text"></a>
|
||||
<a href="https://vulpes-os.org/system-privacy.php#telemetry" class="link-text"></a>
|
||||
</span>
|
||||
</p>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
define('panels/help/support',['require','modules/settings_cache','shared/lazy_loader'],function(require){'use strict';var SettingsCache=require('modules/settings_cache');var LazyLoader=require('shared/lazy_loader');var Support=function(){};Support.prototype={init:function support_init(elements){this._elements=elements;this._callSupportInfo=null;var url='http://support.mozilla.org/products/firefox-os';this._elements.userGuide.addEventListener('click',()=>{this._elements.userGuide.blur();var activity=new window.MozActivity({name:'view',data:{type:'url',url:url}});activity.onsuccess=function(){};});this._getSupportInfo(this._displaySupportInfo.bind(this));},uninit:function(){this._elements=null;this._supportInfo=null;this._callSupportInfo=null;},_getSupportInfo:function support_getSupportInfo(callback){if(this._supportInfo){callback(this._supportInfo);return;}
|
||||
define('panels/help/support',['require','modules/settings_cache','shared/lazy_loader'],function(require){'use strict';var SettingsCache=require('modules/settings_cache');var LazyLoader=require('shared/lazy_loader');var Support=function(){};Support.prototype={init:function support_init(elements){this._elements=elements;this._callSupportInfo=null;var url='https://vulpes-os.org/help.php';this._elements.userGuide.addEventListener('click',()=>{this._elements.userGuide.blur();var activity=new window.MozActivity({name:'view',data:{type:'url',url:url}});activity.onsuccess=function(){};});this._getSupportInfo(this._displaySupportInfo.bind(this));},uninit:function(){this._elements=null;this._supportInfo=null;this._callSupportInfo=null;},_getSupportInfo:function support_getSupportInfo(callback){if(this._supportInfo){callback(this._supportInfo);return;}
|
||||
LazyLoader.getJSON('/resources/support.json').then(function loadSupportInfo(data){this._supportInfo=data;callback(this._supportInfo);}.bind(this));},_createLinkNode:function support_createLinkNode(data,type){var link=document.createElement('a');link.setAttribute('href',data.href);link.classList.add('link-text');if(type=='tel'){link.textContent=data.title+' ('+data.href+')';}else{link.textContent=data.title;}
|
||||
return link;},_enableSupportInfo:function support_enableSupportInfo(){this._elements.help.dataset.hasSupportInfo=true;},_setOnlineSupportInfo:function support_setOnlineSupportInfo(onlineSupportInfo){this._enableSupportInfo();var nodes=this._createLinkNode(onlineSupportInfo);this._elements.supportText.appendChild(nodes);},_setCallSupportInfo:function support_setCallSupportInfo(supportInfo){this._enableSupportInfo();for(var id in supportInfo){this._elements.supportNumber.appendChild(this._createLinkNode(supportInfo[id],'tel'));}},_renderSupportInfo:function support_renderSupportInfo(result){var onlineSupportInfo=null;var onlineSupportTitle=result['support.onlinesupport.title'];if(onlineSupportTitle!==''){onlineSupportInfo={title:onlineSupportTitle};onlineSupportInfo.href=result['support.onlinesupport.href'];this._setOnlineSupportInfo(onlineSupportInfo);}else if(this._supportInfo){this._setOnlineSupportInfo(this._supportInfo.onlinesupport);}
|
||||
var callSupport1Title=result['support.callsupport1.title'];if(callSupport1Title!==''){this._callSupportInfo=[{'title':callSupport1Title,'href':result['support.callsupport1.href']}];var callSupport2Title=result['support.callsupport2.title'];if(callSupport2Title!==''){this._callSupportInfo.push({'title':callSupport2Title,'href':result['support.callsupport2.href']});this._setCallSupportInfo(this._callSupportInfo);}}else if(this._supportInfo){this._setCallSupportInfo(this._supportInfo.callsupport);}},_displaySupportInfo:function support_displaySupportInfo(supportInfo){SettingsCache.getSettings(this._renderSupportInfo.bind(this));}};return function ctor_support(){return new Support();};});define('panels/help/panel',['require','modules/settings_panel','panels/help/support'],function(require){'use strict';var SettingsPanel=require('modules/settings_panel');var Support=require('panels/help/support');return function ctor_support_panel(){var help=Support();return SettingsPanel({onInit:function(panel){var elements={userGuide:panel.querySelector('#user-guide'),help:panel,supportText:panel.querySelector('#help-online-support-text'),supportNumber:panel.querySelector('#help-call-support-numbers')};help.init(elements);}});};});
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
define('panels/screen_lock_passcode/panel',['require','modules/settings_utils','modules/dialog_panel','shared/passcode_helper'],function(require){'use strict';var SettingsUtils=require('modules/settings_utils');var DialogPanel=require('modules/dialog_panel');var PasscodeHelper=require('shared/passcode_helper');return function ctor_screenlockPasscode(){var mozSettings=window.navigator.mozSettings;return DialogPanel({_elements:{},_mode:'create',_leftApp:false,_passcodeBuffer:'',_checkingLength:{'create':8,'new':8,'edit':4,'confirm':4,'confirmLock':4},_headerL10nIdMapping:{'create':'new-passcode','edit':'current-passcode','new':'new-passcode','confirm':'enter-passcode','confirmLock':'enter-passcode'},_submitButtonL10nIdMapping:{'new':'change','create':'create','edit':'','confirm':'','confirmLock':''},onInit:function(panel){this._elements.panel=panel;this._elements.gaiaHeader=panel.querySelector('gaia-header');this._elements.header=panel.querySelector('gaia-header h1');this._elements.passcodeInput=panel.querySelector('.passcode-input');this._elements.passcodeDigits=panel.querySelectorAll('.passcode-digit');this._elements.passcodeContainer=panel.querySelector('.passcode-container');this._elements.submitButton=panel.querySelector('button[type="submit"]');this._elements.submitButtonText=this._elements.submitButton.querySelector('span');this._bindEvents();},_bindEvents:function(){this._elements.passcodeInput.type='password';this._elements.passcodeInput.inputMode='numeric';this._elements.passcodeInput.maxLength=8;this._elements.passcodeInput.oninput=this._onPasscodeInput.bind(this);this._elements.passcodeContainer.onclick=this._onPasscodeContainerClick.bind(this);},_onPasscodeContainerClick:function(evt){evt.preventDefault();this._elements.passcodeInput.focus();},_onPasscodeInput: function() {
|
||||
define('panels/screen_lock_passcode/panel',['require','modules/settings_utils','modules/dialog_panel','shared/passcode_helper'],function(require){'use strict';var SettingsUtils=require('modules/settings_utils');var DialogPanel=require('modules/dialog_panel');var PasscodeHelper=require('shared/passcode_helper');return function ctor_screenlockPasscode(){var mozSettings=window.navigator.mozSettings;return DialogPanel({_elements:{},_mode:'create',_leftApp:false,_passcodeBuffer:'',_checkingLength:{'create':8,'new':8,'edit':4,'confirm':4,'confirmLock':4},_headerL10nIdMapping:{'create':'new-passcode','edit':'current-passcode','new':'new-passcode','confirm':'enter-passcode','confirmLock':'enter-passcode'},_submitButtonL10nIdMapping:{'new':'change','create':'create','edit':'','confirm':'','confirmLock':''},onInit:function(panel){this._elements.panel=panel;this._elements.gaiaHeader=panel.querySelector('gaia-header');this._elements.header=panel.querySelector('gaia-header h1');this._elements.passcodeInput=panel.querySelector('.passcode-input');this._elements.passcodeDigits=panel.querySelectorAll('.passcode-digit');this._elements.passcodeContainer=panel.querySelector('.passcode-container');this._elements.submitButton=panel.querySelector('button[type="submit"]');this._elements.submitButtonText=this._elements.submitButton.querySelector('span');this._bindEvents();},_bindEvents:function(){this._elements.passcodeInput.type='password';this._elements.passcodeInput.inputMode='numeric';this._elements.passcodeInput.maxLength=8;this._elements.passcodeInput.oninput=this._onPasscodeInput.bind(this);this._elements.passcodeContainer.setAttribute('data-vulpes-keep-input', '');
|
||||
this._elements.passcodeContainer.onclick=this._onPasscodeContainerClick.bind(this);},_onPasscodeContainerClick:function(evt){evt.preventDefault();this._elements.passcodeInput.focus();},_onPasscodeInput: function() {
|
||||
// Android IMEs commit text without legacy keypress/charCode events.
|
||||
var value = this._elements.passcodeInput.value.replace(/[^0-9]/g, '').slice(0, 8);
|
||||
this._hideErrorMessage();
|
||||
|
|
|
|||
|
|
@ -1,24 +1,12 @@
|
|||
<html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Vulpes OS source code</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Obtaining Source Code</h1>
|
||||
|
||||
<p>Some open source licenses which cover code used in Boot2Gecko require
|
||||
that the code be made available to users. This document explains how to obtain
|
||||
that source code. It should be updated or replaced on any shipping device
|
||||
with a document appropriate to the code used to build that device. If you
|
||||
see this message on a shipping device you should remind the manufacturer of
|
||||
their obligations under the open source licenses.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Instructions for downloading and compiling the open source code for copies
|
||||
of Boot2Gecko made available by Mozilla can be found on the
|
||||
<a href="https://developer.mozilla.org/docs/Mozilla/Firefox_OS/Building_and_installing_Firefox_OS" target="_blank">Mozilla Developer Network</a>.
|
||||
<p>
|
||||
|
||||
<h1>Vulpes OS source code</h1>
|
||||
<p>Browse the source and release notes in the <a href="https://nnsprod.com/git/OverSu/VulpesOS" target="_blank" rel="noopener">Vulpes OS repository</a>.</p>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@
|
|||
this product is available under one of the following licenses. These licenses
|
||||
give you the freedom to run the software, study it, change it to meet your
|
||||
needs, and share your changes with others. You can
|
||||
<a href="https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Building_and_installing_Firefox_OS" target="_blank">download the source code</a>
|
||||
from Mozilla. Please consult the source to see which license applies to which
|
||||
<a href="https://nnsprod.com/git/OverSu/VulpesOS" target="_blank">download the source code</a>
|
||||
from the Vulpes OS repository. Please consult the source to see which license applies to which
|
||||
parts of the code.
|
||||
</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -300,6 +300,10 @@
|
|||
this.handleError(evt);
|
||||
break;
|
||||
|
||||
case '_iconchange':
|
||||
this.setSiteIcon();
|
||||
break;
|
||||
|
||||
case '_locationchange':
|
||||
this.hidePinDialogCard();
|
||||
this.handleLocationChange();
|
||||
|
|
@ -733,6 +737,7 @@
|
|||
this.app.element.addEventListener('mozbrowsermetachange', this);
|
||||
this.app.element.addEventListener('mozbrowserscrollareachanged', this);
|
||||
this.app.element.addEventListener('_locationchange', this);
|
||||
this.app.element.addEventListener('_iconchange', this);
|
||||
this.app.element.addEventListener('_namechanged', this);
|
||||
this.app.element.addEventListener('_securitychange', this);
|
||||
this.app.element.addEventListener('_loading', this);
|
||||
|
|
@ -792,6 +797,7 @@
|
|||
this.app.element.removeEventListener('mozbrowsererror', this);
|
||||
this.app.element.removeEventListener('mozbrowsermetachange', this);
|
||||
this.app.element.removeEventListener('_locationchange', this);
|
||||
this.app.element.removeEventListener('_iconchange', this);
|
||||
this.app.element.removeEventListener('_namechanged', this);
|
||||
this.app.element.removeEventListener('_loading', this);
|
||||
this.app.element.removeEventListener('_loaded', this);
|
||||
|
|
@ -1279,8 +1285,19 @@
|
|||
return;
|
||||
}
|
||||
|
||||
const generation = this.iconGeneration = (this.iconGeneration || 0) + 1;
|
||||
const favicon = Object.keys(this.app.favicons || {}).find(href => {
|
||||
try { return new URL(href).origin === new URL(this.app.config.url).origin; }
|
||||
catch (_) { return false; }
|
||||
});
|
||||
if (favicon) {
|
||||
this.siteIcon.style.backgroundImage = 'url(' + JSON.stringify(favicon) + ')';
|
||||
this._currentIconUrl = favicon;
|
||||
return;
|
||||
}
|
||||
this.app.getSiteIconUrl(ICON_SIZE)
|
||||
.then(iconObject => {
|
||||
if (generation !== this.iconGeneration) return;
|
||||
// We compare the original icon URL, otherwise there is a flickering
|
||||
// effect because a different object url is created each time.
|
||||
if (this._currentIconUrl !== iconObject.originalUrl) {
|
||||
|
|
@ -1289,6 +1306,7 @@
|
|||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
if (generation !== this.iconGeneration) return;
|
||||
// Installed apps have a manifest icon even when the Places cache has
|
||||
// no favicon. Keep the original chrome slot and select a crisp source.
|
||||
const icons = this.app.manifest && this.app.manifest.icons;
|
||||
|
|
|
|||
|
|
@ -31,12 +31,10 @@
|
|||
break;
|
||||
|
||||
case 'connected':
|
||||
if (!this.manager.wifiManager.connectionInformation) {
|
||||
return;
|
||||
}
|
||||
var level = Math.min(Math.floor(
|
||||
this.manager.wifiManager
|
||||
.connectionInformation.relSignalStrength / 20), 4);
|
||||
var info = this.manager.wifiManager.connectionInformation;
|
||||
var strength = info && info.relSignalStrength;
|
||||
var level = Number.isFinite(strength) ?
|
||||
Math.max(0, Math.min(4, Math.floor(strength / 20))) : 0;
|
||||
this.show();
|
||||
if (icon.dataset.connecting) {
|
||||
delete icon.dataset.connecting;
|
||||
|
|
@ -54,7 +52,7 @@
|
|||
WifiIcon.prototype.view = function view() {
|
||||
return `<div id="statusbar-wifi"
|
||||
class="sb-icon sb-icon-wifi"
|
||||
data-level="4" hidden
|
||||
data-level="0" hidden
|
||||
role="listitem">
|
||||
</div>`;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
[
|
||||
"Illus_Flow2_Blue.jpg",
|
||||
"Illus_Flow2_Orange@2.25x.jpg",
|
||||
"FX_Bolt.jpg",
|
||||
"FX_Leap.jpg",
|
||||
"FX_Rearing.jpg",
|
||||
|
|
@ -42,6 +41,5 @@
|
|||
"PH_Tree.jpg",
|
||||
"PH_TreeForest.jpg",
|
||||
"PH_Wheat.jpg",
|
||||
"PH_WhiteFlower.jpg",
|
||||
"Vulpes_Blue.png"
|
||||
"PH_WhiteFlower.jpg"
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue