Skip to content

Commit b957273

Browse files
committed
Updates for ELS for Languages
1 parent 234902e commit b957273

File tree

5 files changed

+358
-218
lines changed

5 files changed

+358
-218
lines changed

docs/.vuepress/components/CodeWithCopy.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="code-block-wrapper">
2+
<div class="code-block-wrapper" ref="wrapper">
33
<button class="copy-button" @click="copyCode" aria-label="Copy code">
44
<svg v-if="!copied" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16" class="copy-icon">
55
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path>
@@ -17,9 +17,10 @@
1717
import { ref } from 'vue';
1818
1919
const copied = ref(false);
20+
const wrapper = ref(null)
2021
2122
function copyCode() {
22-
const code = document.querySelector('.code-block-wrapper pre code')?.innerText;
23+
const code = wrapper.value?.querySelector('pre code')?.innerText;
2324
if (code) {
2425
navigator.clipboard.writeText(code);
2526
copied.value = true;

docs/.vuepress/routes.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@
2222
"/els-for-languages/#endless-lifecycle-support-for-angular": "/els-for-languages/angular",
2323
"/els-for-languages/#endless-lifecycle-support-for-angularjs": "/els-for-languages/angularjs",
2424
"/els-for-languages/python/#supported-versions": "/els-for-languages/python/#supported-os-and-python-versions",
25-
"/els-for-languages/python/#supported-os": "/els-for-languages/python/#supported-os-and-python-versions"
25+
"/els-for-languages/python/#supported-os": "/els-for-languages/python/#supported-os-and-python-versions",
26+
"/els-for-languages/php/#rpm-based-systems": "/els-for-languages/php/#installation-instructions-for-linux",
27+
"/els-for-languages/php/#deb-based-systems": "/els-for-languages/php/#installation-instructions-for-linux"
2628
}

docs/els-for-languages/angular/README.md

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ You need a username, password, and token in order to use TuxCare ELS Angular rep
6868

6969
TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal registry. Follow the steps below to add it to your project and get started.
7070

71-
* Navigate to the root directory of your Angular project.
72-
* Create a `.npmrc` file or update it if it already exists.
71+
1. Navigate to the root directory of your Angular project.
72+
2. Create a `.npmrc` file or update it if it already exists.
7373

7474
**Example:**
7575

@@ -82,24 +82,30 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
8282
└── tsconfig.json
8383
```
8484

85-
* Use an editor of your choice (e.g., VS Code) to add the following registry address line:
85+
3. Use an editor of your choice (e.g., VS Code) to add the following registry address line:
86+
87+
<CodeWithCopy>
8688

8789
```text
8890
registry=https://registry.npmjs.org/
8991
@els-angular:registry=https://nexus.repo.tuxcare.com/repository/els_angular/
9092
//nexus.repo.tuxcare.com/repository/els_angular/:_auth=${TOKEN}
9193
```
9294

95+
</CodeWithCopy>
96+
9397
:::warning
9498
Replace ${TOKEN} with the token you received from [[email protected]](mailto:[email protected]).
9599
:::
96100

97-
* Update your `package.json` file to replace your Angular dependencies with the TuxCare packages:
101+
4. Update your `package.json` file to replace your Angular dependencies with the TuxCare packages:
98102

99103
**Angular 12**
100104
<details>
101105
<summary>Click to expand</summary>
102106

107+
<CodeWithCopy>
108+
103109
```text
104110
"dependencies": {
105111
"@els-js/angular-12": "^0.0.1",
@@ -131,12 +137,16 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
131137
}
132138
```
133139

140+
</CodeWithCopy>
141+
134142
</details>
135143

136144
**Angular 13**
137145
<details>
138146
<summary>Click to expand</summary>
139147

148+
<CodeWithCopy>
149+
140150
```text
141151
"dependencies": {
142152
"@els-js/angular-13": "^0.0.1",
@@ -167,13 +177,16 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
167177
"typescript": "file:./node_modules/@els-js/angular-13/deps/typescript"
168178
}
169179
```
180+
</CodeWithCopy>
170181

171182
</details>
172183

173184
**Angular 14**
174185
<details>
175186
<summary>Click to expand</summary>
176187

188+
<CodeWithCopy>
189+
177190
```text
178191
"dependencies": {
179192
"@els-js/angular-14": "^0.0.1",
@@ -203,12 +216,16 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
203216
"typescript": "file:./node_modules/@els-js/angular-14/deps/typescript"
204217
}
205218
```
219+
220+
</CodeWithCopy>
206221

207222
</details>
208223

209224
**Angular 15**
210225
<details>
211226
<summary>Click to expand</summary>
227+
228+
<CodeWithCopy>
212229

213230
```text
214231
"dependencies": {
@@ -239,12 +256,16 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
239256
"typescript": "file:./node_modules/@els-js/angular-15/deps/typescript"
240257
}
241258
```
259+
260+
</CodeWithCopy>
242261

243262
</details>
244263

245264
**Angular 16**
246265
<details>
247266
<summary>Click to expand</summary>
267+
268+
<CodeWithCopy>
248269

249270
```text
250271
"dependencies": {
@@ -275,13 +296,17 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
275296
"typescript": "file:./node_modules/@els-js/angular-16/deps/typescript"
276297
}
277298
```
299+
300+
</CodeWithCopy>
278301

279302
</details>
280303

281304
**Angular 17**
282305
<details>
283306
<summary>Click to expand</summary>
284307

308+
<CodeWithCopy>
309+
285310
```text
286311
"dependencies": {
287312
"@els-js/angular-17": "^0.0.1",
@@ -312,12 +337,16 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
312337
}
313338
```
314339

340+
</CodeWithCopy>
341+
315342
</details>
316343

317344
**Angular 18**
318345
<details>
319346
<summary>Click to expand</summary>
320347

348+
<CodeWithCopy>
349+
321350
```text
322351
"dependencies": {
323352
"@els-js/angular-18": "^0.0.1",
@@ -347,13 +376,17 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
347376
"typescript": "file:./node_modules/@els-js/angular-18/deps/typescript"
348377
}
349378
```
379+
380+
</CodeWithCopy>
350381

351382
</details>
352383

353384
**Angular 19**
354385
<details>
355386
<summary>Click to expand</summary>
356387

388+
<CodeWithCopy>
389+
357390
```text
358391
"dependencies": {
359392
"@els-js/angular-19": "^0.0.1",
@@ -382,14 +415,20 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
382415
"typescript": "file:./node_modules/@els-js/angular-19/deps/typescript"
383416
}
384417
```
418+
419+
</CodeWithCopy>
385420

386421
</details>
387422

388-
* In your terminal, run the following command to install ELS for Angular 16 dependencies:
423+
5. In your terminal, run the following command to install ELS for Angular 16 dependencies:
389424

425+
<CodeWithCopy>
426+
390427
```text
391428
npm install --userconfig .npmrc
392429
```
430+
431+
</CodeWithCopy>
393432

394433
You will see an output like:
395434

@@ -399,4 +438,4 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
399438
found 0 vulnerabilities
400439
```
401440

402-
* You've successfully integrated the TuxCare ELS for Angular repository into your project.
441+
6. You've successfully integrated the TuxCare ELS for Angular repository into your project.

0 commit comments

Comments
 (0)