Skip to content

Commit c424ad7

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Neocities types and formatting ( Fixes #7 )
1 parent 83f7e16 commit c424ad7

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

Neocities.types.ps1xml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!-- Generated with EZOut 2.0.6: Install-Module EZOut or https://github.com/StartAutomating/EZOut -->
2+
<Types>
3+
<Type>
4+
<Name>neocities.file</Name>
5+
<Members>
6+
<ScriptProperty>
7+
<Name>CreatedAt</Name>
8+
<GetScriptBlock>
9+
&lt;#
10+
.SYNOPSIS
11+
Gets the creation time
12+
.DESCRIPTION
13+
Gets the creation time, as a `[DateTime]` object.
14+
#&gt;
15+
$this.created_at -as [DateTime]
16+
17+
</GetScriptBlock>
18+
</ScriptProperty>
19+
<ScriptProperty>
20+
<Name>UpdatedAt</Name>
21+
<GetScriptBlock>
22+
&lt;#
23+
.SYNOPSIS
24+
Gets the last update time
25+
.DESCRIPTION
26+
Gets the last update time, as a `[DateTime]` object.
27+
#&gt;
28+
$this.updated_at -as [DateTime]
29+
30+
</GetScriptBlock>
31+
</ScriptProperty>
32+
</Members>
33+
</Type>
34+
<Type>
35+
<Name>neocities.info</Name>
36+
<Members>
37+
<ScriptProperty>
38+
<Name>CreatedAt</Name>
39+
<GetScriptBlock>
40+
&lt;#
41+
.SYNOPSIS
42+
Gets the creation time
43+
.DESCRIPTION
44+
Gets the creation time, as a `[DateTime]` object.
45+
#&gt;
46+
$this.created_at -as [DateTime]
47+
48+
</GetScriptBlock>
49+
</ScriptProperty>
50+
<ScriptProperty>
51+
<Name>UpdatedAt</Name>
52+
<GetScriptBlock>
53+
&lt;#
54+
.SYNOPSIS
55+
Gets the last update time
56+
.DESCRIPTION
57+
Gets the last update time, as a `[DateTime]` object.
58+
#&gt;
59+
$this.last_updated -as [DateTime]
60+
61+
</GetScriptBlock>
62+
</ScriptProperty>
63+
<ScriptProperty>
64+
<Name>Url</Name>
65+
<GetScriptBlock>
66+
param()
67+
if ($this.Domain) {
68+
"https://$($this.Domain)/"
69+
}
70+
elseif ($this.sitename) {
71+
"https://$($this.sitename).neocities.org/"
72+
}
73+
74+
</GetScriptBlock>
75+
</ScriptProperty>
76+
</Members>
77+
</Type>
78+
</Types>

0 commit comments

Comments
 (0)