slicejs-web-framework 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
<p align="center">
|
|
39
39
|
Component-Based Web Development Framework
|
|
40
40
|
<br />
|
|
41
|
-
<a href="https://slice-js.vercel.app/
|
|
41
|
+
<a href="https://slice-js-docs.vercel.app/Documentation"><strong>Explore the docs »</strong></a>
|
|
42
42
|
<br />
|
|
43
43
|
<br />
|
|
44
|
-
<a href="https://slice-js.vercel.app/
|
|
44
|
+
<a href="https://slice-js-docs.vercel.app/">View Demo</a>
|
|
45
45
|
·
|
|
46
46
|
<a href="https://github.com/VKneider/slice.js/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
|
|
47
47
|
·
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
<!-- ABOUT THE PROJECT -->
|
|
78
78
|
## About The Project
|
|
79
79
|
|
|
80
|
-
[![Product Name Screen Shot][product-screenshot]](https://slice-js.vercel.app/
|
|
80
|
+
[![Product Name Screen Shot][product-screenshot]](https://slice-js-docs.vercel.app/)
|
|
81
81
|
|
|
82
82
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
83
83
|
|
|
@@ -87,30 +87,21 @@
|
|
|
87
87
|
This is an example of how you may give instructions on setting up your project locally.
|
|
88
88
|
To get a local copy up and running follow these simple example steps.
|
|
89
89
|
|
|
90
|
-
### Prerequisites
|
|
91
|
-
|
|
92
|
-
This is an example of how to list things you need to use the software and how to install them.
|
|
93
|
-
* npm
|
|
94
|
-
```sh
|
|
95
|
-
npm install npm@latest -g
|
|
96
|
-
```
|
|
97
|
-
|
|
98
90
|
### Installation
|
|
99
91
|
|
|
100
92
|
_Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services._
|
|
101
93
|
|
|
102
|
-
1.
|
|
103
|
-
2. Clone the repo
|
|
94
|
+
1. Install slicejs cli dependencies
|
|
104
95
|
```sh
|
|
105
|
-
|
|
96
|
+
npm i slicejs-cli
|
|
106
97
|
```
|
|
107
|
-
|
|
98
|
+
2. Initialize slice project
|
|
108
99
|
```sh
|
|
109
|
-
npm
|
|
100
|
+
npm run slice:init
|
|
110
101
|
```
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
|
|
102
|
+
3. Start web server
|
|
103
|
+
```sh
|
|
104
|
+
npm run slice:start
|
|
114
105
|
```
|
|
115
106
|
|
|
116
107
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
@@ -121,12 +112,9 @@ _Below is an example of how you can instruct your audience on installing and set
|
|
|
121
112
|
## Roadmap
|
|
122
113
|
|
|
123
114
|
- [x] Add Changelog
|
|
124
|
-
- [
|
|
125
|
-
- [ ]
|
|
126
|
-
- [ ]
|
|
127
|
-
- [ ] Multi-language Support
|
|
128
|
-
- [ ] Chinese
|
|
129
|
-
- [ ] Spanish
|
|
115
|
+
- [ ] Add Image visual component
|
|
116
|
+
- [ ] Modify Slice Card Visual Component
|
|
117
|
+
- [ ] Create internationalization Translator Service component.
|
|
130
118
|
|
|
131
119
|
See the [open issues](https://github.com/VKneider/slice.js/issues) for a full list of proposed features (and known issues).
|
|
132
120
|
|
|
@@ -137,16 +125,7 @@ See the [open issues](https://github.com/VKneider/slice.js/issues) for a full li
|
|
|
137
125
|
<!-- CONTRIBUTING -->
|
|
138
126
|
## Contributing
|
|
139
127
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
|
|
143
|
-
Don't forget to give the project a star! Thanks again!
|
|
144
|
-
|
|
145
|
-
1. Fork the Project
|
|
146
|
-
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
|
147
|
-
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
|
148
|
-
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
149
|
-
5. Open a Pull Request
|
|
128
|
+
We welcome contributions to the project! Please make sure to review the guidelines in the [CONTRIBUTING.md](docs/CONTRIBUTING.md) file before submitting any changes.
|
|
150
129
|
|
|
151
130
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
152
131
|
|
|
@@ -159,21 +138,6 @@ Distributed under the MIT License. See `LICENSE` for more information.
|
|
|
159
138
|
|
|
160
139
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
161
140
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<!-- CONTACT -->
|
|
165
|
-
## Contact
|
|
166
|
-
|
|
167
|
-
Your Name - [@your_twitter](https://twitter.com/your_username) - email@example.com
|
|
168
|
-
|
|
169
|
-
Project Link: [https://github.com/VKneider/slice.js](https://github.com/VKneider/slice.js)
|
|
170
|
-
|
|
171
|
-
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
141
|
<!-- MARKDOWN LINKS & IMAGES -->
|
|
178
142
|
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
|
179
143
|
[contributors-shield]: https://img.shields.io/github/contributors/VKneider/slice.js.svg?style=for-the-badge
|
|
@@ -189,19 +153,4 @@ Project Link: [https://github.com/VKneider/slice.js](https://github.com/VKneider
|
|
|
189
153
|
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
|
|
190
154
|
[linkedin-url]: https://linkedin.com/in/VKneider
|
|
191
155
|
[product-screenshot]: readme_images/screenshot.JPG
|
|
192
|
-
|
|
193
|
-
[Next-url]: https://nextjs.org/
|
|
194
|
-
[React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB
|
|
195
|
-
[React-url]: https://reactjs.org/
|
|
196
|
-
[Vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D
|
|
197
|
-
[Vue-url]: https://vuejs.org/
|
|
198
|
-
[Angular.io]: https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white
|
|
199
|
-
[Angular-url]: https://angular.io/
|
|
200
|
-
[Svelte.dev]: https://img.shields.io/badge/Svelte-4A4A55?style=for-the-badge&logo=svelte&logoColor=FF3E00
|
|
201
|
-
[Svelte-url]: https://svelte.dev/
|
|
202
|
-
[Laravel.com]: https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white
|
|
203
|
-
[Laravel-url]: https://laravel.com
|
|
204
|
-
[Bootstrap.com]: https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white
|
|
205
|
-
[Bootstrap-url]: https://getbootstrap.com
|
|
206
|
-
[JQuery.com]: https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white
|
|
207
|
-
[JQuery-url]: https://jquery.com
|
|
156
|
+
|
|
@@ -9,11 +9,127 @@ export default class Debugger extends HTMLElement {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
async enableDebugMode() {
|
|
12
|
-
const html = await slice.controller.fetchText('Debugger', true, true, "/Slice/Components/Structural/Debugger/Debugger.html" );
|
|
12
|
+
//const html = await slice.controller.fetchText('Debugger', true, true, "/Slice/Components/Structural/Debugger/Debugger.html" );
|
|
13
|
+
|
|
14
|
+
const html = `
|
|
15
|
+
<div id="debugger-container">
|
|
16
|
+
<div class="debugger-header">
|
|
17
|
+
<div id="close-debugger">[×]</div>
|
|
18
|
+
<h3>Component Details</h3>
|
|
19
|
+
</div>
|
|
20
|
+
<div id="component-details">
|
|
21
|
+
<ul class="component-details-list"></ul>
|
|
22
|
+
<div class="component-details-table"></div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>`
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
13
30
|
this.innerHTML = html;
|
|
14
|
-
const css = await slice.controller.fetchText('Debugger', true, true, "/Slice/Components/Structural/Debugger/Debugger.css"
|
|
31
|
+
//const css = await slice.controller.fetchText('Debugger', true, true, "/Slice/Components/Structural/Debugger/Debugger.css");
|
|
32
|
+
const css = `
|
|
33
|
+
#debugger-container {
|
|
34
|
+
font-family: var(--font-family);
|
|
35
|
+
display: none;
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 20px;
|
|
38
|
+
left: 20px;
|
|
39
|
+
padding: 10px;
|
|
40
|
+
border: var(--slice-border) solid var(--primary-color);
|
|
41
|
+
background-color: var(--primary-background-color);
|
|
42
|
+
z-index: 1000;
|
|
43
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#debugger-container.active {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.slice_thead td {
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
background-color: var(--primary-color);
|
|
54
|
+
color: var(--primary-color-contrast);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
#close-debugger {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 10px;
|
|
61
|
+
right: 10px;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
color: var(--danger-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
h3 {
|
|
67
|
+
color: var(--primary-color);
|
|
68
|
+
margin-bottom: 10px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
#component-details {
|
|
72
|
+
color: var(--font-primary-color);
|
|
73
|
+
}
|
|
74
|
+
.component-details-table {
|
|
75
|
+
overflow: scroll;
|
|
76
|
+
input {
|
|
77
|
+
outline: none;
|
|
78
|
+
border-bottom: 1px solid var(--tertiary-background-color);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.component-details-table::-webkit-scrollbar {
|
|
82
|
+
width: 5px;
|
|
83
|
+
height: 5px;
|
|
84
|
+
}
|
|
85
|
+
.component-details-table::-webkit-scrollbar-thumb {
|
|
86
|
+
background: var(--secondary-color);
|
|
87
|
+
border-radius: var(--border-radius-slice);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#component-details table {
|
|
91
|
+
width: 100%;
|
|
92
|
+
border-collapse: collapse;
|
|
93
|
+
margin-top: 10px;
|
|
94
|
+
/* border: 1px solid var(--primary-color); */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.debugger-header {
|
|
98
|
+
border-bottom: 1px solid var(--primary-color);
|
|
99
|
+
user-select: none;
|
|
100
|
+
cursor: grab;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.debugger-header:active {
|
|
104
|
+
cursor: grabbing;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#component-details th,
|
|
108
|
+
#component-details td {
|
|
109
|
+
padding: 10px;
|
|
110
|
+
text-align: left;
|
|
111
|
+
border-bottom: 1px solid var(--primary-color);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
input {
|
|
115
|
+
border: 0px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.slice_component-details td,
|
|
119
|
+
input {
|
|
120
|
+
background-color: var(--secondary-background-color);
|
|
121
|
+
color: var(--font-primary-color);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Estilo para las filas impares, solo para mejorar la legibilidad */
|
|
125
|
+
#component-details tr:nth-child(odd) {
|
|
126
|
+
background-color: #f9f9f9;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
`
|
|
130
|
+
|
|
15
131
|
slice.stylesManager.registerComponentStyles('Debugger', css);
|
|
16
|
-
|
|
132
|
+
|
|
17
133
|
this.debuggerContainer = this.querySelector('#debugger-container');
|
|
18
134
|
this.closeDebugger = this.querySelector('#close-debugger');
|
|
19
135
|
this.componentDetails = this.querySelector('#component-details');
|
package/package.json
CHANGED