Skip to content

Commit

Permalink
Deploying to gh-pages from @ ada232b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
SchoolGuy committed Sep 2, 2024
1 parent 34f2f52 commit 6e1a72f
Show file tree
Hide file tree
Showing 99 changed files with 9,786 additions and 6,743 deletions.
2 changes: 1 addition & 1 deletion additional-documentation/development-setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h2>Basic setup</h2>
<li>Run the built image: <code>docker run -it --rm --name cobbler-dev -p 80:80 -p 443:443 -v ${PWD}:/code cobbler-dev</code></li>
<li>Execute the setup script in the running container: <code>./docker/develop/scripts/setup-supervisor.sh</code></li>
<li>Let the container run in the foreground! You may want to tail the Cobbler log:
<code>tail -f /var/log/cobbler/cobbler.log</code></li>
<code>tail -f /var/log/cobbler/cobbler.log</code></li>
</ul>
</li>
<li>Go into the <code>cobbler-web</code> directory and follow these steps:<ul>
Expand Down
112 changes: 70 additions & 42 deletions classes/DateFormatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="107" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:107</a></div>
<div class="io-line">Defined in <a href="" data-line="122" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:122</a></div>
</td>
</tr>

Expand Down Expand Up @@ -356,7 +356,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="12" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:12</a></div>
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:15</a></div>
</td>
</tr>

Expand All @@ -381,7 +381,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:13</a></div>
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:16</a></div>
</td>
</tr>

Expand All @@ -402,7 +402,9 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>new RegExp(&#x27;([0-9]{4})([-]?([0-9]{2}))([-]?([0-9]{2}))(T([0-9]{2})(((:?([0-9]{2}))?((:?([0-9]{2}))?(\.([0-9]+))?))?)(Z|([+-]([0-9]{2}(:?([0-9]{2}))?)))?)?&#x27;)</code>
<i>Default value : </i><code>new RegExp(
&#x27;([0-9]{4})([-]?([0-9]{2}))([-]?([0-9]{2}))(T([0-9]{2})(((:?([0-9]{2}))?((:?([0-9]{2}))?(.([0-9]+))?))?)(Z|([+-]([0-9]{2}(:?([0-9]{2}))?)))?)?&#x27;,
)</code>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -438,7 +440,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:14</a></div>
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:17</a></div>
</td>
</tr>

Expand All @@ -463,7 +465,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:15</a></div>
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:18</a></div>
</td>
</tr>

Expand All @@ -488,7 +490,7 @@ <h3 id="inputs">
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:16</a></div>
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:19</a></div>
</td>
</tr>

Expand Down Expand Up @@ -524,8 +526,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="72"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:72</a></div>
<div class="io-line">Defined in <a href="" data-line="80"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:80</a></div>
</td>
</tr>

Expand Down Expand Up @@ -602,8 +604,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="133"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:133</a></div>
<div class="io-line">Defined in <a href="" data-line="153"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:153</a></div>
</td>
</tr>

Expand Down Expand Up @@ -681,8 +683,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="55"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:55</a></div>
<div class="io-line">Defined in <a href="" data-line="61"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:61</a></div>
</td>
</tr>

Expand Down Expand Up @@ -753,8 +755,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="98"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:98</a></div>
<div class="io-line">Defined in <a href="" data-line="110"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:110</a></div>
</td>
</tr>

Expand Down Expand Up @@ -824,8 +826,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="39"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:39</a></div>
<div class="io-line">Defined in <a href="" data-line="42"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:42</a></div>
</td>
</tr>

Expand Down Expand Up @@ -895,8 +897,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="26"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:26</a></div>
<div class="io-line">Defined in <a href="" data-line="29"
class="link-to-prism">projects/typescript-xmlrpc/src/lib/date_formatter.ts:29</a></div>
</td>
</tr>

Expand Down Expand Up @@ -985,8 +987,11 @@ <h3 id="methods">
/**
* Regular Expression that dissects ISO 8601 formatted strings into an array of parts.
*/
// eslint-disable-next-line max-len
static ISO8601 &#x3D; new RegExp(&#x27;([0-9]{4})([-]?([0-9]{2}))([-]?([0-9]{2}))(T([0-9]{2})(((:?([0-9]{2}))?((:?([0-9]{2}))?(\.([0-9]+))?))?)(Z|([+-]([0-9]{2}(:?([0-9]{2}))?)))?)?&#x27;);
/* eslint-disable max-len */
static ISO8601 &#x3D; new RegExp(
&#x27;([0-9]{4})([-]?([0-9]{2}))([-]?([0-9]{2}))(T([0-9]{2})(((:?([0-9]{2}))?((:?([0-9]{2}))?(.([0-9]+))?))?)(Z|([+-]([0-9]{2}(:?([0-9]{2}))?)))?)?&#x27;,
);
/* eslint-enable max-len */

colons &#x3D; true;
hyphens &#x3D; false;
Expand Down Expand Up @@ -1015,15 +1020,18 @@ <h3 id="methods">
*
* @param date - Date Object
*/
static getUTCDateParts(date: Date): [number, string, string, string, string, string, string] {
static getUTCDateParts(
date: Date,
): [number, string, string, string, string, string, string] {
return [
date.getUTCFullYear(),
DateFormatter.zeroPad(date.getUTCMonth() + 1, 2),
DateFormatter.zeroPad(date.getUTCDate(), 2),
DateFormatter.zeroPad(date.getUTCHours(), 2),
DateFormatter.zeroPad(date.getUTCMinutes(), 2),
DateFormatter.zeroPad(date.getUTCSeconds(), 2),
DateFormatter.zeroPad(date.getUTCMilliseconds(), 3)];
DateFormatter.zeroPad(date.getUTCMilliseconds(), 3),
];
}

/**
Expand All @@ -1033,12 +1041,14 @@ <h3 id="methods">
*/
static formatCurrentOffset(d: Date): string {
const offset &#x3D; (d || new Date()).getTimezoneOffset();
return (offset &#x3D;&#x3D;&#x3D; 0) ? &#x27;Z&#x27; : [
(offset &lt; 0) ? &#x27;+&#x27; : &#x27;-&#x27;,
DateFormatter.zeroPad(Math.abs(Math.floor(offset / 60)), 2),
&#x27;:&#x27;,
DateFormatter.zeroPad(Math.abs(offset % 60), 2)
].join(&#x27;&#x27;);
return offset &#x3D;&#x3D;&#x3D; 0
? &#x27;Z&#x27;
: [
offset &lt; 0 ? &#x27;+&#x27; : &#x27;-&#x27;,
DateFormatter.zeroPad(Math.abs(Math.floor(offset / 60)), 2),
&#x27;:&#x27;,
DateFormatter.zeroPad(Math.abs(offset % 60), 2),
].join(&#x27;&#x27;);
}

/**
Expand All @@ -1051,20 +1061,24 @@ <h3 id="methods">
static decodeIso8601(time: string): Date {
const dateParts &#x3D; time.toString().match(DateFormatter.ISO8601);
if (!dateParts) {
throw new Error(&#x27;Expected a ISO8601 datetime but got \&#x27;&#x27; + time + &#x27;\&#x27;&#x27;);
throw new Error(&quot;Expected a ISO8601 datetime but got &#x27;&quot; + time + &quot;&#x27;&quot;);
}

let date &#x3D; [
[dateParts[1], dateParts[3] || &#x27;01&#x27;, dateParts[5] || &#x27;01&#x27;].join(&#x27;-&#x27;),
&#x27;T&#x27;,
[ dateParts[7] || &#x27;00&#x27;, dateParts[11] || &#x27;00&#x27;, dateParts[14] || &#x27;00&#x27; ].join(&#x27;:&#x27;),
[dateParts[7] || &#x27;00&#x27;, dateParts[11] || &#x27;00&#x27;, dateParts[14] || &#x27;00&#x27;].join(
&#x27;:&#x27;,
),
&#x27;.&#x27;,
dateParts[16] || &#x27;000&#x27;
dateParts[16] || &#x27;000&#x27;,
].join(&#x27;&#x27;);

date +&#x3D; (dateParts[17] !&#x3D;&#x3D; undefined)
? dateParts[17] + ((dateParts[19] &amp;&amp; dateParts[20] &#x3D;&#x3D;&#x3D; undefined) ? &#x27;00&#x27; : &#x27;&#x27;) :
DateFormatter.formatCurrentOffset(new Date(date));
date +&#x3D;
dateParts[17] !&#x3D;&#x3D; undefined
? dateParts[17] +
(dateParts[19] &amp;&amp; dateParts[20] &#x3D;&#x3D;&#x3D; undefined ? &#x27;00&#x27; : &#x27;&#x27;)
: DateFormatter.formatCurrentOffset(new Date(date));

return new Date(date);
}
Expand All @@ -1074,15 +1088,18 @@ <h3 id="methods">
*
* @param date - Date Object
*/
static getLocalDateParts(date: Date): [number, string, string, string, string, string, string] {
static getLocalDateParts(
date: Date,
): [number, string, string, string, string, string, string] {
return [
date.getFullYear(),
DateFormatter.zeroPad(date.getMonth() + 1, 2),
DateFormatter.zeroPad(date.getDate(), 2),
DateFormatter.zeroPad(date.getHours(), 2),
DateFormatter.zeroPad(date.getMinutes(), 2),
DateFormatter.zeroPad(date.getSeconds(), 2),
DateFormatter.zeroPad(date.getMilliseconds(), 3)];
DateFormatter.zeroPad(date.getMilliseconds(), 3),
];
}

/**
Expand All @@ -1094,8 +1111,13 @@ <h3 id="methods">
* @param ms Enable/Disable output of milliseconds
* @param offset Enable/Disable output of UTC offset
*/
constructor(colons: boolean &#x3D; true, hyphens: boolean &#x3D; false, local: boolean &#x3D; true, ms: boolean &#x3D; false,
offset: boolean &#x3D; false) {
constructor(
colons: boolean &#x3D; true,
hyphens: boolean &#x3D; false,
local: boolean &#x3D; true,
ms: boolean &#x3D; false,
offset: boolean &#x3D; false,
) {
this.colons &#x3D; colons;
this.hyphens &#x3D; hyphens;
this.local &#x3D; local;
Expand All @@ -1110,14 +1132,20 @@ <h3 id="methods">
* @return String representation of timestamp.
*/
encodeIso8601(date: Date): string {
const parts &#x3D; this.local ? DateFormatter.getLocalDateParts(date) : DateFormatter.getUTCDateParts(date);
const parts &#x3D; this.local
? DateFormatter.getLocalDateParts(date)
: DateFormatter.getUTCDateParts(date);

return [
[parts[0], parts[1], parts[2]].join(this.hyphens ? &#x27;-&#x27; : &#x27;&#x27;),
&#x27;T&#x27;,
[parts[3], parts[4], parts[5]].join(this.colons ? &#x27;:&#x27; : &#x27;&#x27;),
(this.ms) ? &#x27;.&#x27; + parts[6] : &#x27;&#x27;,
(this.local) ? ((this.offset) ? DateFormatter.formatCurrentOffset(date) : &#x27;&#x27;) : &#x27;Z&#x27;
this.ms ? &#x27;.&#x27; + parts[6] : &#x27;&#x27;,
this.local
? this.offset
? DateFormatter.formatCurrentOffset(date)
: &#x27;&#x27;
: &#x27;Z&#x27;,
].join(&#x27;&#x27;);
}
}
Expand Down
12 changes: 5 additions & 7 deletions components/AppComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="12" class="link-to-prism">projects/cobbler-frontend/src/app/app.component.ts:12</a></div>
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">projects/cobbler-frontend/src/app/app.component.ts:11</a></div>
</td>
</tr>

Expand All @@ -214,20 +214,18 @@ <h3 id="constructor">Constructor</h3>


<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from &quot;@angular/core&quot;;
import { ManageMenuComponent } from &quot;./manage-menu/manage-menu.component&quot;;

<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from &#x27;@angular/core&#x27;;
import { ManageMenuComponent } from &#x27;./manage-menu/manage-menu.component&#x27;;

@Component({
selector: &#x27;cobbler-root&#x27;,
templateUrl: &#x27;./app.component.html&#x27;,
styleUrls: [&#x27;./app.component.css&#x27;],
imports: [ManageMenuComponent],
standalone:true
standalone: true,
})
export class AppComponent {
constructor() {
}
constructor() {}
}
</code></pre>
</div>
Expand Down
Loading

0 comments on commit 6e1a72f

Please sign in to comment.