Стартовый проект с ШИМ и фримастером для отладки
This commit is contained in:
parent
8f1292eed0
commit
da48649bb8
1
Projects/.gitignore
vendored
Normal file
1
Projects/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/.metadata/
|
||||
BIN
Projects/.jxbrowser.userdata/BrowserMetrics-spare.pma
Normal file
BIN
Projects/.jxbrowser.userdata/BrowserMetrics-spare.pma
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1,27 @@
|
||||
// Copyright 2015 The Chromium Authors. All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following disclaimer
|
||||
// in the documentation and/or other materials provided with the
|
||||
// distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from
|
||||
// this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@ -0,0 +1 @@
|
||||
[{"description":"treehash per file","signed_content":{"payload":"eyJjb250ZW50X2hhc2hlcyI6W3siYmxvY2tfc2l6ZSI6NDA5NiwiZGlnZXN0Ijoic2hhMjU2IiwiZmlsZXMiOlt7InBhdGgiOiJMSUNFTlNFIiwicm9vdF9oYXNoIjoiUGIwc2tBVUxaUzFqWldTQnctV0hIRkltRlhVcExiZDlUcVkwR2ZHSHBWcyJ9LHsicGF0aCI6ImNybC1zZXQiLCJyb290X2hhc2giOiJTVEV3X3hUYkZvLWl4c19RM1Y3MzZyT2xPbFFYdkw0ckdTYlNreXA5TzJzIn0seyJwYXRoIjoibWFuaWZlc3QuanNvbiIsInJvb3RfaGFzaCI6Ind6UUVWdTJCNmZrelRSVjUxa1NiNElFRmZ1dWh2dUdoQWZ3WkZFdWI3VmMifV0sImZvcm1hdCI6InRyZWVoYXNoIiwiaGFzaF9ibG9ja19zaXplIjo0MDk2fV0sIml0ZW1faWQiOiJoZm5rcGltbGhoZ2llYWRkZ2ZlbWpob2ZtZmJsbW5pYiIsIml0ZW1fdmVyc2lvbiI6IjgxOTQiLCJwcm90b2NvbF92ZXJzaW9uIjoxfQ","signatures":[{"header":{"kid":"publisher"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"YkuG2B_UJm85l862Cyx_8w12ekKinEEh1CZlx900LTwg7wX64oQljbPM8kH9fZAMxvyXucPq_f-mN4DInZo17jVn94kpwU3Dcw0t17zZFmwObIOQ78OQxbw3P0WZTn0V4BVNs3ZLXQKqCiYwrop-WS1DFB2VLpBAYcyu48DnIJgs-JCtbEUBJpH5BX7rI0Xz6P0It6hV0m-3-Er3Ee0sKhlVKZF8b65r6vXLwKRAqU65mptKdmWYWQzugiLQ8Po2GmRNSWnLxGVRG9hTL8KfJxrr-DLwixhuZi9u2jmssRpnUs59BamVVHTlK1Z-AgdOLV8mt8toI_TktxF5uMZvWw"},{"header":{"kid":"webstore"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"BgYrEz-CDX0hxoqY8wHfxzzoK5uQ8smdPUdeVeY0Q-eBKryB_-4gT4HlkG3zYKyZUD50SHoGR6gMThf6QZUmEJBNgUk1-CgShEQUQ2Ss1UpPJK0jtZUNiqofxvPqnN6MvgrbkCB8c7DsW2zYPgp-5FI3x8VSs9Y8PtYC5UyLnpHaf9_al2pS-5s_zwbJz-Ysn2n4EKXsEbhTg6MQ5SigCSqHBtkqAJ0v_rNT5o7Uu63RvfbtFl3XYAf1I-qYx5x5AQw74x2ZHB3n0Hjoeb8iqcp9NpTwRj9z34eF6p7YvR_LD9Ev6-kOq3WTvn1r8YV-a3PgVll6kRMBSofA9IP4tg"}]}}]
|
||||
BIN
Projects/.jxbrowser.userdata/CertificateRevocation/8194/crl-set
Normal file
BIN
Projects/.jxbrowser.userdata/CertificateRevocation/8194/crl-set
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
1.14fc4dff8cc8dc7956c033ed07162385172ec85caaa94554e274e45e63374e15
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "crl-set-7066718399802542011.data",
|
||||
"version": "8194"
|
||||
}
|
||||
1646
Projects/.jxbrowser.userdata/Crowd Deny/2022.12.16.779/Preload Data
Normal file
1646
Projects/.jxbrowser.userdata/Crowd Deny/2022.12.16.779/Preload Data
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1 @@
|
||||
[{"description":"treehash per file","signed_content":{"payload":"eyJjb250ZW50X2hhc2hlcyI6W3siYmxvY2tfc2l6ZSI6NDA5NiwiZGlnZXN0Ijoic2hhMjU2IiwiZmlsZXMiOlt7InBhdGgiOiJQcmVsb2FkIERhdGEiLCJyb290X2hhc2giOiJ5blk2UFBQcU8zOVVVeUlZY3JLdVhwUU8yUmtjS0hIVlFRN2VqTXJDVUh3In0seyJwYXRoIjoibWFuaWZlc3QuanNvbiIsInJvb3RfaGFzaCI6ImtrOFFEUUZab2wwcVlpWGhrOG43c0tHMk1xZ0RvMUFIVEIyRGpzM2V5TDQifV0sImZvcm1hdCI6InRyZWVoYXNoIiwiaGFzaF9ibG9ja19zaXplIjo0MDk2fV0sIml0ZW1faWQiOiJnZ2trZWhnYm5manBlZ2dmcGxlZWFrcGlkYmtpYmJtbiIsIml0ZW1fdmVyc2lvbiI6IjIwMjIuMTIuMTYuNzc5IiwicHJvdG9jb2xfdmVyc2lvbiI6MX0","signatures":[{"header":{"kid":"publisher"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"UbFi8YEafzoPiA9S6jBdAUYhpI3UJSHfdyugD6CTSyXhDSboF_dVVNE0Qu31T_6HVvoufIrM6Yq3kT_8LFdbmOh4nAfd0WjsTBu1wGuN2pQWuQW3in6dLGW6DdRJMi1zBFbn-VFWscuesOSRVYjjxhocmrvYwdlsSXwkQNFjs3FUWVlxB_UXEl89eXdycs9ITYVfay1Esbu3zmlZfiJH0rICtkFqkgarRMR8bbIGOpQghrukJ9coiq8KFJgntQNGsEuUW7y7s6Z1Wdz-DyLdUpxATKdMcO98soq0k4Vk3jnf2_-j7x8cIzoXWeWdIHQ24vjuu0BBReSJoOn3DCbsbMb9KBfd8hvvqa2Dc3NIf8x5vV42xxUnoRGaS2cnCHEaBiMAB9PVLsd7kE-vSPTz33lN9qFJ7q2xbAHmGH9Lh6qhhDo883fBMqnJjo79xeZPZkUEAlAW1lSbBz5G_IjnIOVU2iU6VnoIUO0pmRiKxP2yIqcVP-G_5drWkhhNbZxA02HqxKV_OuOiL7Lm5k7ryjmkBF_jAWvwFBQHTfhcHARV2um0zfKTeQyxfWDfAq7NgZG-5LbYrItVeug7MhbsjsjpUjzPNOv3R0KSwwAHcOQH2w94Uethuzx7McH9q-seeoBEkbklHaRYQQOwdCyblRPBZn0dqAZm7O2lGo2mQY8"},{"header":{"kid":"webstore"},"protected":"eyJhbGciOiJSUzI1NiJ9","signature":"YLz7aV0VMNR4_hVM29kgwiIb4YZS7cETIxza8AYPVn6w-nHejW8lP3TxTRzxuzk40qZ78AvKyuyDOILxkfnr2D9jiQ8BH8AnsNfJuE9aRPYEqgioBM-56jt8MOo3XF9_O22iEBSW9m0JfmMGXqBr5bNJ7rsTBdbj3wvMLBTxvdYUnTrt5AeXzNWu6pPx2u_fNbyiB5i0Swntg_7kEGZiwUKqB4PTO7K5xTJgwv549sYboqLDttm7lEXOUmmVKZK4-Po7set5vG09mMp4vbiBCMSq4l801rkkw8vX3h3HWHAF3q7QcbSHvjYCaDtqYpxpND3gH27YoXNkoxGFEQD5yw"}]}}]
|
||||
@ -0,0 +1 @@
|
||||
1.ed2f4d0fa9d2f99837719f80e3990498314290c6a294a72296ddcada784dd278
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "Crowd Deny",
|
||||
"preload_data_format": 1,
|
||||
"version": "2022.12.16.779"
|
||||
}
|
||||
BIN
Projects/.jxbrowser.userdata/Default/Affiliation Database
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Affiliation Database
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_0
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_0
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_1
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_1
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_2
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_2
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_3
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/data_3
Normal file
Binary file not shown.
2821
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000001
Normal file
2821
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000001
Normal file
File diff suppressed because it is too large
Load Diff
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000002
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000002
Normal file
Binary file not shown.
430
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000003
Normal file
430
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000003
Normal file
@ -0,0 +1,430 @@
|
||||
import { h } from './core-800e68f4.js';
|
||||
import { TiUtils } from '../ti-core-assets/lib/TiUtils';
|
||||
import '../ti-core-assets/lib/TiFiles';
|
||||
import { TiConsole } from '../ti-core-assets/lib/TiConsole';
|
||||
import { TiLocalStorage } from '../ti-core-assets/lib/TiLocalStorage';
|
||||
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(components/assets/fonts/font-roboto/Roboto_300_normal.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(components/assets/fonts/font-roboto/Roboto_400_normal.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(components/assets/fonts/font-roboto/Roboto_500_normal.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(components/assets/fonts/font-roboto/Roboto_700_normal.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(components/assets/fonts/font-roboto/Roboto_300_italic.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(components/assets/fonts/font-roboto/Roboto_400_italic.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(components/assets/fonts/font-roboto/Roboto_500_italic.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(components/assets/fonts/font-roboto/Roboto_700_italic.woff) format('woff');
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
|
||||
/**
|
||||
* Copyright (c) 2019, Texas Instruments Incorporated
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/**
|
||||
* Theme css switching using MutationObserver to the body attribute change.
|
||||
* Only loaded once when added to the dom.
|
||||
*/
|
||||
//create ti-widget-theme-stylesheet on load, append to document
|
||||
const style$1 = document.createElement('style');
|
||||
style$1.setAttribute('title', 'ti-widget-theme-stylesheet');
|
||||
const element = document.head || document.body;
|
||||
element.appendChild(style$1);
|
||||
style$1.sheet.insertRule('html {}', 0);
|
||||
const styleSheet = style$1.sheet.cssRules[0].style;
|
||||
// modify stylesheet/css variables on theme attribute change in body
|
||||
const observer = new MutationObserver((mutations) => {
|
||||
mutations.forEach(function (mutation) {
|
||||
switch (document.body.getAttribute('theme')) {
|
||||
case 'ti-theme':
|
||||
styleSheet.setProperty('--theme-primary-color', '#cc0000');
|
||||
styleSheet.setProperty('--theme-secondary-color', '#115566');
|
||||
styleSheet.setProperty('--theme-alternative-color', '#990000');
|
||||
styleSheet.setProperty('--theme-background-color', '#fff');
|
||||
styleSheet.setProperty('--theme-font-color', '#231F20');
|
||||
styleSheet.setProperty('--theme-header-font-color', '#231F20');
|
||||
break;
|
||||
case 'ti-dark':
|
||||
styleSheet.setProperty('--theme-primary-color', '#990000');
|
||||
styleSheet.setProperty('--theme-secondary-color', '#115566');
|
||||
styleSheet.setProperty('--theme-alternative-color', '#990000');
|
||||
styleSheet.setProperty('--theme-background-color', '#2f2f2f');
|
||||
styleSheet.setProperty('--theme-font-color', '#f2f2f2');
|
||||
styleSheet.setProperty('--theme-header-font-color', '#f2f2f2');
|
||||
break;
|
||||
}
|
||||
});
|
||||
});
|
||||
observer.observe(document.body, {
|
||||
attributes: true,
|
||||
attributeFilter: ['theme']
|
||||
});
|
||||
|
||||
/**
|
||||
* Copyright (c) 2019-2020, Texas Instruments Incorporated
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/**
|
||||
* `TiElementBase` provides the base implementation for TI elements.
|
||||
*
|
||||
* @customElement
|
||||
* @isHidden
|
||||
*/
|
||||
class TiElementBase {
|
||||
constructor(parent) {
|
||||
this.parent = parent;
|
||||
}
|
||||
/**
|
||||
* Returns true if the element is hosted in the designer, otherwise false.
|
||||
*
|
||||
* @return {boolean}
|
||||
*/
|
||||
isDesignerHosted() {
|
||||
return !!TiUtils.rootWin.TIDesigner;
|
||||
}
|
||||
/**
|
||||
* Parse the delimited string into an array.
|
||||
*
|
||||
* @param {undefined|string|Array<string>} text the input text
|
||||
* @param delimiter the delimiter character
|
||||
* @return {Array<string>} the array
|
||||
*/
|
||||
parseArray(text, delimiter) {
|
||||
text = text || '';
|
||||
// support arrays as well
|
||||
if (text instanceof Array) {
|
||||
return text;
|
||||
}
|
||||
// support using terminating character as a delimiter if one of [,;|].
|
||||
// this means that if you want a blank element at the end of the list, you have to use a double terminator; for example, A|B|C||
|
||||
if (!delimiter && text.length > 1) {
|
||||
const lastCharacter = text.charAt(text.length - 1);
|
||||
if (lastCharacter === '|' || lastCharacter === ',' || lastCharacter === ';') {
|
||||
delimiter = lastCharacter;
|
||||
text = text.substring(0, text.length - 1);
|
||||
}
|
||||
}
|
||||
// support comma-separated values, semi-colon separated, or | separated fields.
|
||||
let fields = text.split(delimiter || '|');
|
||||
if (!delimiter) {
|
||||
let altFields = text.split(';');
|
||||
if (altFields.length > fields.length) {
|
||||
fields = altFields;
|
||||
}
|
||||
altFields = text.split(',');
|
||||
if (altFields.length > fields.length && (altFields.length !== fields.length + 1 || fields.length === 1)) {
|
||||
fields = altFields;
|
||||
}
|
||||
}
|
||||
for (let i = fields.length; i-- > 0;) {
|
||||
fields[i] = fields[i].trim();
|
||||
}
|
||||
if (fields.length === 1 && fields[0].length === 0) {
|
||||
return [];
|
||||
}
|
||||
return fields;
|
||||
}
|
||||
/**
|
||||
* Returns the cookie value.
|
||||
*
|
||||
* @param {string} name the name of the cookie
|
||||
* @return {string} the cookie value
|
||||
*/
|
||||
static getCookie(name) {
|
||||
const value = '; ' + document.cookie;
|
||||
const parts = value.split('; ' + name + '=');
|
||||
if (parts.length === 2) {
|
||||
const item = parts.pop();
|
||||
if (item !== null) {
|
||||
return item.split(';').shift() || '';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
}
|
||||
/**
|
||||
* Helper method to log trace message to the console.
|
||||
*
|
||||
* @param {string} logtype trace type, can be log|info|warn|debug
|
||||
* @param {function|string} message the message to log
|
||||
*/
|
||||
trace(logType, message) {
|
||||
const output = typeof message === 'object' ? JSON.stringify(message) : message;
|
||||
const id = this.element.id ? this.element.id : 'no-id';
|
||||
switch (logType) {
|
||||
case 'error':
|
||||
TiConsole.error('[' + this.element.localName + ': ' + id + ']', output);
|
||||
break;
|
||||
case 'warning':
|
||||
TiConsole.warning('[' + this.element.localName + ': ' + id + ']', output);
|
||||
break;
|
||||
case 'info':
|
||||
TiConsole.info('[' + this.element.localName + ': ' + id + ']', output);
|
||||
break;
|
||||
case 'log':
|
||||
TiConsole.log('[' + this.element.localName + ': ' + id + ']', output);
|
||||
break;
|
||||
case 'debug':
|
||||
TiConsole.debug('[' + this.element.localName + ': ' + id + ']', output);
|
||||
break;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Saves the setting to local storage.
|
||||
*
|
||||
* @param {string} name the setting name
|
||||
* @param {string} value the value
|
||||
*/
|
||||
saveSetting(name, value) {
|
||||
const id = this.element.tagName.toLowerCase();
|
||||
const root = JSON.parse(TiLocalStorage.getItem(TiElementBase.STORAGE_ROOT) || '{}');
|
||||
if (!root[id]) {
|
||||
root[id] = {};
|
||||
}
|
||||
root[id][name] = value;
|
||||
TiLocalStorage.setItem(TiElementBase.STORAGE_ROOT, JSON.stringify(root));
|
||||
}
|
||||
/**
|
||||
* Loads the setting from local storage.
|
||||
*
|
||||
* @param {string} name the setting name
|
||||
* @return {object} the setting JSON object
|
||||
*/
|
||||
loadSetting(name) {
|
||||
const id = this.element.tagName.toLowerCase();
|
||||
const root = JSON.parse(TiLocalStorage.getItem(TiElementBase.STORAGE_ROOT) || '{}');
|
||||
const element = root[id] || {};
|
||||
return element[name];
|
||||
}
|
||||
}
|
||||
TiElementBase.STORAGE_ROOT = 'GC-SETTINGS';
|
||||
|
||||
/**
|
||||
* Copyright (c) 2019-2020, Texas Instruments Incorporated
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* * Neither the name of Texas Instruments Incorporated nor the names of
|
||||
* its contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/**
|
||||
* `TiWidgetBase` provides the base implementation for TI widgets.
|
||||
*/
|
||||
class TiWidgetBase extends TiElementBase {
|
||||
constructor(parent) {
|
||||
super(parent);
|
||||
this.parent = parent;
|
||||
}
|
||||
/* Widget that response to CSS property change should override this method to re-render */
|
||||
onCSSPropertyChanged(name, value) { }
|
||||
;
|
||||
renderInfoText(infoText) {
|
||||
if (infoText) {
|
||||
// JSXON
|
||||
return (h("div", { class: "help-text icon" },
|
||||
h("ti-widget-tooltip", { text: infoText },
|
||||
h("ti-widget-icon", { appearance: "secondary", icon: "help", size: "s" }))));
|
||||
// JSXOFF
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
render(element, options) {
|
||||
if (options && (options.caption || options.infoText)) {
|
||||
// JSXON
|
||||
return (h("div", { class: "root-container", onClick: (e) => this.onClickHandler(e, e.target) },
|
||||
(options === null || options === void 0 ? void 0 : options.caption) ? h("div", { class: "header-container top" },
|
||||
(options === null || options === void 0 ? void 0 : options.caption) ? h("div", { class: "caption" }, options.caption) : null,
|
||||
this.renderInfoText(options === null || options === void 0 ? void 0 : options.infoText)) : null,
|
||||
this.parent.tooltip ? (h("div", { id: "elementWrapper" },
|
||||
element,
|
||||
h("ti-widget-tooltip", { class: "tooltip", text: this.parent.tooltip, anchorId: "elementWrapper" }))) : h("div", { id: "elementWrapper" }, element),
|
||||
(options === null || options === void 0 ? void 0 : options.infoText) && !(options === null || options === void 0 ? void 0 : options.caption) ? h("div", { class: "header-container side" }, this.renderInfoText(options === null || options === void 0 ? void 0 : options.infoText)) : null));
|
||||
// JSXOFF
|
||||
}
|
||||
else {
|
||||
// JSXON
|
||||
return (h("div", { id: "elementWrapper" },
|
||||
element,
|
||||
this.parent.tooltip ? h("ti-widget-tooltip", { class: "tooltip", text: this.parent.tooltip, anchorId: "elementWrapper" }) : null));
|
||||
// JSXOFF
|
||||
}
|
||||
}
|
||||
onClickHandler(event, element) {
|
||||
if (element) {
|
||||
const parent = element.parentElement;
|
||||
if (parent && parent.id === 'elementWrapper') {
|
||||
return;
|
||||
}
|
||||
else if (!element.classList.contains('root-container')) {
|
||||
this.onClickHandler(event, element.parentElement);
|
||||
}
|
||||
else {
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
fire(eventName, detail) {
|
||||
const obj = this.parent;
|
||||
for (const x in obj) {
|
||||
if (TiUtils.camelToDashCase(x) === eventName) {
|
||||
return obj[x].emit(detail);
|
||||
}
|
||||
}
|
||||
}
|
||||
setCSSProperty(name, value) {
|
||||
value = value.replace(/^[ ]+|[ ]+$/g, '');
|
||||
this.element.style.setProperty(name, value);
|
||||
this.parent.cssPropertyChanged.emit({ name: name, value: value });
|
||||
}
|
||||
getCSSProperty(name) {
|
||||
return getComputedStyle(this.element).getPropertyValue(name);
|
||||
}
|
||||
refresh() {
|
||||
return this.element['forceUpdate']();
|
||||
}
|
||||
/**
|
||||
* Add the class name to the element.
|
||||
*
|
||||
* @param {string} name the class name
|
||||
* @param {HTMLElement} element the element
|
||||
* @protected
|
||||
*/
|
||||
addClassName(name, element) {
|
||||
this.modifyClassName(true, name, element);
|
||||
}
|
||||
/**
|
||||
* Remove the class name from the element.
|
||||
*
|
||||
* @param {string} name the class name
|
||||
* @param {HTMLElement} element the element
|
||||
* @protected
|
||||
*/
|
||||
removeClassName(name, element) {
|
||||
this.modifyClassName(false, name, element);
|
||||
}
|
||||
modifyClassName(isAdd, name, element = this.element) {
|
||||
if (element.className.indexOf(name) < 0) {
|
||||
if (isAdd) {
|
||||
// add because it doesn't exist yet and should
|
||||
element.className = (element.className + ' ' + name).trim();
|
||||
}
|
||||
}
|
||||
else if (!isAdd) {
|
||||
// remove because it does exist and shouldn't
|
||||
element.className = element.className.replace(name, '').trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { TiWidgetBase as T };
|
||||
|
||||
//# sourceMappingURL=ti-widget-base-fe722328.js.map
|
||||
126
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000004
Normal file
126
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/f_000004
Normal file
File diff suppressed because one or more lines are too long
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/index
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Cache/Cache_Data/index
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Code Cache/js/index
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Code Cache/js/index
Normal file
Binary file not shown.
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Code Cache/wasm/index
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Code Cache/wasm/index
Normal file
Binary file not shown.
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_0
Normal file
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_0
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_1
Normal file
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_1
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_2
Normal file
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_2
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_3
Normal file
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/data_3
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/index
Normal file
BIN
Projects/.jxbrowser.userdata/Default/DawnCache/index
Normal file
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
MANIFEST-000001
|
||||
@ -0,0 +1,2 @@
|
||||
2023/08/23-16:02:32.954 5538 Creating DB D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\Extension Scripts since it was missing.
|
||||
2023/08/23-16:02:33.012 5538 Reusing MANIFEST D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\Extension Scripts/MANIFEST-000001
|
||||
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Extension State/000003.log
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Extension State/000003.log
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
MANIFEST-000001
|
||||
2
Projects/.jxbrowser.userdata/Default/Extension State/LOG
Normal file
2
Projects/.jxbrowser.userdata/Default/Extension State/LOG
Normal file
@ -0,0 +1,2 @@
|
||||
2023/08/23-16:02:33.047 4070 Creating DB D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\Extension State since it was missing.
|
||||
2023/08/23-16:02:33.082 4070 Reusing MANIFEST D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\Extension State/MANIFEST-000001
|
||||
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Favicons
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Favicons
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
MANIFEST-000001
|
||||
@ -0,0 +1,2 @@
|
||||
2023/08/23-16:02:47.933 3d9c Creating DB D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\GCM Store\Encryption since it was missing.
|
||||
2023/08/23-16:02:48.034 3d9c Reusing MANIFEST D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\GCM Store\Encryption/MANIFEST-000001
|
||||
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_0
Normal file
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_0
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_1
Normal file
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_1
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_2
Normal file
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_2
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_3
Normal file
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/data_3
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/index
Normal file
BIN
Projects/.jxbrowser.userdata/Default/GPUCache/index
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/History
Normal file
BIN
Projects/.jxbrowser.userdata/Default/History
Normal file
Binary file not shown.
0
Projects/.jxbrowser.userdata/Default/LOCK
Normal file
0
Projects/.jxbrowser.userdata/Default/LOCK
Normal file
0
Projects/.jxbrowser.userdata/Default/LOG
Normal file
0
Projects/.jxbrowser.userdata/Default/LOG
Normal file
@ -0,0 +1 @@
|
||||
MANIFEST-000001
|
||||
@ -0,0 +1,2 @@
|
||||
2023/08/23-16:02:33.148 44d4 Creating DB D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\Local Storage\leveldb since it was missing.
|
||||
2023/08/23-16:02:33.254 44d4 Reusing MANIFEST D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\.jxbrowser.userdata\Default\Local Storage\leveldb/MANIFEST-000001
|
||||
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Login Data
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Login Data
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Login Data For Account
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Login Data For Account
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Network Action Predictor
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Network Action Predictor
Normal file
Binary file not shown.
BIN
Projects/.jxbrowser.userdata/Default/Network/Cookies
Normal file
BIN
Projects/.jxbrowser.userdata/Default/Network/Cookies
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
{"net":{"http_server_properties":{"servers":[{"anonymization":[],"server":"https://optimizationguide-pa.googleapis.com","supports_spdy":true}],"version":5},"network_qualities":{"CAESABiAgICA+P////8B":"4G"}}}
|
||||
1
Projects/.jxbrowser.userdata/Default/Preferences
Normal file
1
Projects/.jxbrowser.userdata/Default/Preferences
Normal file
File diff suppressed because one or more lines are too long
1
Projects/.jxbrowser.userdata/Default/PreferredApps
Normal file
1
Projects/.jxbrowser.userdata/Default/PreferredApps
Normal file
@ -0,0 +1 @@
|
||||
{"preferred_apps":[],"version":1}
|
||||
1
Projects/.jxbrowser.userdata/Default/README
Normal file
1
Projects/.jxbrowser.userdata/Default/README
Normal file
@ -0,0 +1 @@
|
||||
Chromium settings and storage represent user-selected preferences and information and MUST not be extracted, overwritten or modified except through Chromium defined APIs.
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user