Skip to content

Commit 403c4bb

Browse files
Merge pull request #1 from QuickCorp/language-es
Language es
2 parents d7be812 + 521bb0e commit 403c4bb

7 files changed

+382
-317
lines changed

QCObjects.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -1687,12 +1687,12 @@
16871687
a.oldclick = a.onclick;
16881688
a.onclick = function(e) {
16891689
var _ret_ = true;
1690-
if (!global.get("routingPaths")) {
1691-
global.set("routingPaths", []);
1690+
if (!_top.global.get("routingPaths")) {
1691+
_top.global.set("routingPaths", []);
16921692
}
16931693
var routingWay = ClassFactory("CONFIG").get("routingWay");
16941694
var routingPath = e.target[routingWay];
1695-
if (global.get("routingPaths").includes(routingPath) &&
1695+
if (_top.global.get("routingPaths").includes(routingPath) &&
16961696
e.target[routingWay] !== document.location[routingWay] &&
16971697
e.target.href !== document.location.href
16981698
) {
@@ -1801,11 +1801,11 @@
18011801
routing[attributeNames[a]] = routingNode.getAttribute(attributeNames[a]);
18021802
}
18031803
this.routings.push(routing);
1804-
if (!global.get("routingPaths")) {
1805-
global.set("routingPaths", []);
1804+
if (!_top.global.get("routingPaths")) {
1805+
_top.global.set("routingPaths", []);
18061806
}
1807-
if (!global.get("routingPaths").includes(routing.path)) {
1808-
global.get("routingPaths").push(routing.path);
1807+
if (!_top.global.get("routingPaths").includes(routing.path)) {
1808+
_top.global.get("routingPaths").push(routing.path);
18091809
}
18101810
}
18111811
}
@@ -1973,7 +1973,7 @@
19731973
var component = this;
19741974
var lang1=ClassFactory("CONFIG").get("lang","en");
19751975
var lang2 = navigator.language.slice(0, 2);
1976-
var i18n = global.get("i18n");
1976+
var i18n = _top.global.get("i18n");
19771977
if ((lang1 !== lang2) && (typeof i18n === "object" && i18n.hasOwnProperty.call(i18n,"messages"))){
19781978
var callback_i18n = function (){
19791979
var component = this;

README-es.md

+315-287
Large diffs are not rendered by default.

README.md

+51-15
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can contribute to [QCObjects](https://qcobjects.dev) following the set of gu
2828

2929
For those who have no time to read all of this today, here is a small video that explains what QCObjects is and what can be done with it.
3030

31-
[![QCObjects Explainer Video](http://img.youtube.com/vi/D0rftABPGvQ/0.jpg)](http://www.youtube.com/watch?v=D0rftABPGvQ "QCObjects Explainer Video")
31+
[![QCObjects Explainer Video](https://img.youtube.com/vi/D0rftABPGvQ/0.jpg)](https://www.youtube.com/watch?v=D0rftABPGvQ "QCObjects Explainer Video")
3232

3333
_________________________
3434
# Table of Contents
@@ -91,7 +91,6 @@ _________________________
9191
- [GLOBAL](#global)
9292
- [CONFIG](#config)
9393
- [Processor](#processor)
94-
- [for Unix/Linux systems](#for-unixlinux-systems)
9594
- [waitUntil](#waituntil)
9695
- [Package](#package)
9796
- [Import](#import)
@@ -1010,8 +1009,9 @@ Processor.setProcessor(SERVICE_PORT);
10101009

10111010
Then you only need to set your environment variable SERVICE_URL in your shell
10121011

1012+
This is only for Unix/Linux systems
1013+
10131014
```shell
1014-
# for Unix/Linux systems
10151015
export SERVICE_URL="https://example.com:443/path-to-a-resource/"
10161016
```
10171017

@@ -1660,8 +1660,44 @@ Class("MyNewController",Controller,{
16601660
```
16611661

16621662
### Effect
1663+
1664+
**Effect** is a super class to define custom effects.
1665+
1666+
#### Example:
1667+
1668+
```javascript
1669+
Class('CustomFade',Effect,{
1670+
duration:500, // milliseconds of duration
1671+
apply: function (){
1672+
// You need the following line to apply a Fade effect in runtime
1673+
_super_('Fade','apply').apply(this,arguments);
1674+
}
1675+
})
1676+
```
1677+
1678+
16631679
### Timer
16641680

1681+
**Timer** is a special implementation of **requestAnimationFrame** to emulate the creation of thread instances, so you can handle runtime paralell processing in a little bit more efficient way.
1682+
1683+
NOTE: As it is currently depending in requestAnimationFrame availability it only works on modern browsers.
1684+
1685+
#### Example:
1686+
1687+
```javascript
1688+
Timer.thread({
1689+
duration:300, // duration in milliseconds
1690+
timing(timeFraction,elapsed){
1691+
return timeFraction; // you can change this line to return a custom math function for timing
1692+
},
1693+
intervalInterceptor(progress){
1694+
if (progress>=100){
1695+
// do whatever you want here
1696+
}
1697+
}
1698+
});
1699+
```
1700+
16651701
## List and Math Functions
16661702

16671703
### ArrayList
@@ -1990,7 +2026,7 @@ Inside of the body of your component, when it is a **FormField** component, ever
19902026

19912027
#### org.quickcorp.components.ButtonField
19922028

1993-
**ButtonField** is a sub-definition of **FormField**, that is commonly used for almost the same purpose of FormField. The main difference between ButtonField and FormField is that ButtonField has a **<button>** DOM element as the body of the component by default. And FormField hasn't a pre-defined body.
2029+
**ButtonField** is a sub-definition of **FormField**, that is commonly used for almost the same purpose of FormField. The main difference between ButtonField and FormField is that ButtonField has a **```<button>```** DOM element as the body of the component by default. And FormField hasn't a pre-defined body.
19942030

19952031
##### Usage:
19962032

@@ -2011,7 +2047,7 @@ Inside of the body of your component, when it is a **FormField** component, ever
20112047

20122048
#### org.quickcorp.components.TextField
20132049

2014-
**ButtonField** is a sub-definition of **FormField**, that is commonly used for almost the same purpose of FormField. The main difference between InputField and FormField is that ButtonField has a **<textarea>** DOM element as the body of the component by default. And FormField hasn't a pre-defined body.
2050+
**ButtonField** is a sub-definition of **FormField**, that is commonly used for almost the same purpose of FormField. The main difference between InputField and FormField is that ButtonField has a **```<textarea>```** DOM element as the body of the component by default. And FormField hasn't a pre-defined body.
20152051

20162052
##### Usage:
20172053

@@ -2022,7 +2058,7 @@ Inside of the body of your component, when it is a **FormField** component, ever
20222058

20232059
#### org.quickcorp.components.EmailField
20242060

2025-
**EmailField** is a sub-definition of **FormField**, that is commonly used for almost the same purpose of FormField. The main difference between ButtonField and FormField is that ButtonField has a **<input>** DOM element as the body of the component by default. And FormField hasn't a pre-defined body.
2061+
**EmailField** is a sub-definition of **FormField**, that is commonly used for almost the same purpose of FormField. The main difference between ButtonField and FormField is that ButtonField has a **```<input>```** DOM element as the body of the component by default. And FormField hasn't a pre-defined body.
20262062

20272063
##### Usage:
20282064

@@ -2746,7 +2782,7 @@ QCObjects was designed to work into a professional environment. There are many w
27462782
The benefits of a Multitier or N-Tier architecture are scalability and reliability of the systems that are demanding higger impact and performance. To go deep into this concepts would unnecessary enlarge this reference document but you can read more about this concepts in the following external links (only for reference and study):
27472783

27482784
- [Miltitier Architecture](https://en.m.wikipedia.org/wiki/Multitier_architecture)
2749-
- [3 Tier Architecture](http://www.tonymarston.net/php-mysql/3-tier-architecture.html)
2785+
- [3 Tier Architecture](https://www.tonymarston.net/php-mysql/3-tier-architecture.html)
27502786
- [Milti Tier Application](https://www.techopedia.com/definition/23599/multi-tier-application)
27512787
- [N Tier Architecture System Concepts and Tips](https://www.guru99.com/n-tier-architecture-system-concepts-tips.html)
27522788

@@ -3070,19 +3106,19 @@ Import('cl.quickcorp'); # this will import your main file: cl.quickcorp.js into
30703106

30713107
## Options
30723108

3073-
* -V, --version output the version number
3074-
* -h, --help output usage information
3109+
-V, --version output the version number
3110+
-h, --help output usage information
30753111

30763112
## Commands
30773113

3078-
* **create** [options] <appname> Creates an app with <appname>
3079-
* **publish** [options] <appname> Publishes an app with <appname>
3080-
* **generate-sw** <appname> Generates the service worker <appname>
3081-
* **launch** <appname> Launches the application
3114+
**create** [options] ```<appname>``` Creates an app with ```<appname>```
3115+
**publish** [options] ```<appname>``` Publishes an app with ```<appname>```
3116+
**generate-sw** ```<appname>``` Generates the service worker ```<appname>```
3117+
**launch** ```<appname>``` Launches the application
30823118

30833119
## Use:
3084-
* $ qcobjects-cli [command] --help
3085-
* For detailed information of a command
3120+
$ qcobjects-cli [command] --help
3121+
For detailed information of a command
30863122

30873123
# ALPHA RISE Startup
30883124
--------------------------

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.449
1+
2.2.455

manifest.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
{
3737
"src": "img/icons/icon-192x192.png",
3838
"sizes": "192x192",
39-
"type": "image/png"
39+
"type": "image/png",
40+
"purpose": "any maskable"
4041
},
4142
{
4243
"src": "img/icons/icon-384x384.png",

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qcobjects",
3-
"version": "2.2.449",
3+
"version": "2.2.455",
44
"description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
55
"main": "QCObjects.js",
66
"license": "LGPL-3.0",

0 commit comments

Comments
 (0)