Skip to content

Commit c4c97c2

Browse files
committed
Pages auto published, roll back
Moving future changes to Dev branch
1 parent da36d42 commit c4c97c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+51481
-52327
lines changed

docs/index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- -- -- -- -->
2323

2424
<link type="text/css" rel="stylesheet" href="style/ProcStackStyle.css">
25-
<link type="text/css" rel="stylesheet" href="style/pxlNavStyle.css">
25+
<link type="text/css" rel="stylesheet" href="style/pxlNavStyle.min.css">
2626

2727

2828
<!-- -- -- -- -->

docs/js/BlogManager.js

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,71 @@
1-
import{blogEntries}from"./blog/blogEntries.js";export class BlogManager{constructor(t,e){this.listParent=t,this.contentParent=e,this.blogEntries=[],this.currentEntry=null}init(){let t=Object.keys(blogEntries);for(let e=0;e<t.length;e++)this.blogEntries.push(blogEntries[t[e]])}setListParent(t){this.listParent=t}setContentParent(t){this.contentParent=t}addBlogEntry(t,e,n,s){let i=new blogEntries(this.parent,t,e,n,s);this.blogEntries.push(i)}build(t=null){let e=t;if(null==e){if(null==this.contentParent)return void console.error("No Parent Object set");e=this.contentParent}for(let t=0;t<this.blogEntries.length;t++){this.blogEntries[t].setId(t),this.blogEntries[t].build(e),this.blogEntries[t].hide();let n=this.blogEntries[t].title+" :: "+this.blogEntries[t].date;this.addListing(n,t)}}addListing(t,e){let n=document.createElement("button");n.textContent=t,n.classList.add("blogEntryListingStyle"),n.addEventListener("click",(()=>{this.showEntry(e)})),this.listParent.appendChild(n)}showEntry(t){(-1==t||t>=this.blogEntries.length)&&(t=this.blogEntries.length-1),null!=this.currentEntry&&this.currentEntry.hide(),this.currentEntry=this.blogEntries[t],this.currentEntry.show()}}
1+
// Simple blog manager for my procstack blog
2+
3+
4+
import { blogEntries } from './blog/blogEntries.js';
5+
6+
export class BlogManager {
7+
constructor( listParent, contentParent ){
8+
this.listParent = listParent;
9+
this.contentParent = contentParent;
10+
this.blogEntries = [];
11+
this.currentEntry = null;
12+
}
13+
init(){
14+
let blogEntryKeys = Object.keys(blogEntries);
15+
for( let i = 0; i < blogEntryKeys.length; i++ ){
16+
this.blogEntries.push( blogEntries[blogEntryKeys[i]] );
17+
}
18+
}
19+
setListParent( listParent ){
20+
this.listParent = listParent;
21+
}
22+
setContentParent( contentParent ){
23+
this.contentParent = contentParent;
24+
}
25+
addBlogEntry( title, date, tags, body ){
26+
let blogEntry = new blogEntries( this.parent, title, date, tags, body );
27+
this.blogEntries.push( blogEntry );
28+
}
29+
build( parent=null ){
30+
let parentObj = parent;
31+
if( parentObj == null ){
32+
if( this.contentParent == null ){
33+
console.error('No Parent Object set');
34+
return;
35+
}
36+
parentObj = this.contentParent;
37+
}
38+
39+
for( let i = 0; i < this.blogEntries.length; i++ ){
40+
// Content Prep
41+
this.blogEntries[i].setId( i );
42+
this.blogEntries[i].build( parentObj );
43+
this.blogEntries[i].hide();
44+
45+
// Listing Prep
46+
let curEntryName = this.blogEntries[i].title + ' :: ' + this.blogEntries[i].date;
47+
this.addListing( curEntryName, i );
48+
}
49+
}
50+
51+
addListing( name, index ){
52+
let entry = document.createElement('button');
53+
entry.textContent = name;
54+
entry.classList.add('blogEntryListingStyle');
55+
entry.addEventListener('click', () => {
56+
this.showEntry( index );
57+
});
58+
this.listParent.appendChild(entry);
59+
}
60+
61+
showEntry( index ){
62+
if( index == -1 || index >= this.blogEntries.length){
63+
index = this.blogEntries.length - 1;
64+
}
65+
if( this.currentEntry != null ){
66+
this.currentEntry.hide();
67+
}
68+
this.currentEntry = this.blogEntries[index];
69+
this.currentEntry.show();
70+
}
71+
}

docs/js/ProcPages.js

Lines changed: 530 additions & 1 deletion
Large diffs are not rendered by default.

docs/js/ProckStackGitio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// For `pxlNav` scripting, the entry-point is `./Source/js/pxlNavCore.js`
1010
//
1111

12-
import { pxlNav, pxlNavVersion, pxlEnums, PXLNAV_OPTIONS } from './pxlNav.esm.js';
12+
import { pxlNav, pxlNavVersion, pxlEnums, PXLNAV_OPTIONS } from './pxlNav.min.js';
1313
import { ProcPages } from './ProcPages.js';
1414
import { BlogManager } from './BlogManager.js';
1515

docs/js/blog/2024-12-07_A.js

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,58 @@
1-
import{blogEntry}from"./blogEntryBase.js";let entryTitle="Site Progress",entryDate="2024-12-07",entryTags=["pxlNav","procstack","github","github.io","javascript","decemeber","2024"],entryBody='\nGettin this site online!\n<br>\n<br>It\'s been quite a bit of work, spread over a longer span of time than I was hoping.\n<br>&nbsp;&nbsp; But it\'s finally coming together nicely!\n\n<div class="blogSpacer"></div>\n\nIt\'s been oddly enjoyable getting <span class="textNudge">pxlNav</span> refactored and accessible from outside of the module.\n<br>Cutting out nearly 7000 lines of code, \n<br>Comments always the bane of my existence,\n<br>&nbsp;&nbsp; But they seem to fill out in time.\n\n<div class="blogSpacer"></div>\n\nCurrently general ambiance is my focus.\n<br>Things in 3d like to be dark when you introduce the idea of a "light" to them\n<br>&nbsp;&nbsp; So making sure shaders are matching textures and lighting takes some time.\n<br>\n<br>Then mix in modeling, rigging, texturing, animating, and scripting the rest of the site.\n<br>&nbsp;&nbsp; Since <span class="textNudge">pxlNav</span> is just what handles Three.js.\n<br>\n<br>All I can say is having drive for a passion project helps build your skills.\n<br>&nbsp;&nbsp; Get\'s you looking for more outlets to share your work.\n<br>&nbsp;&nbsp;&nbsp;&nbsp; And you end up finding other projects people have made that inspire you.\n<br>\n<br>So here\'s to future projects and sharing creativity with others!\n\n<div class="blogSpacer"></div>\n\nI just got the camera location warping working from outside of pxlNav.\n<br>Trigger a camera warp from a button press using a flag on your tag.\n<br>\n<br>This brought me to add optional camera positions in your 3d cgi program of choice.\n<br>Add a new group under your Camera_grp in your scene,\n<br>&nbsp;&nbsp; Just add a Position and lookAt locator/null/empty object in that group,\n<br>&nbsp;&nbsp;&nbsp;&nbsp; Then add a "pxlRoomName" & "pxlCameraView" tag to your link on your site.\n<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "pxlRoomName" is your \'pxlRoom\' name,\n<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "pxlCameraView" is your group name under \'Camera_grp\'.\n<br>&nbsp;&nbsp; Click your link and watch pxlNav warp your camera to that position!\n<br>\n<br>Only problem right now is the warping effect isn\'t running.\n<br>&nbsp;&nbsp; I\'m likely just not enabling the post-process layer for the effect.\n<br>&nbsp;&nbsp;&nbsp;&nbsp; pxlCamera has been reworked a bit up to this point,\n<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; More testing is required.\n<br>\n<br>&nbsp; -Kevin Edzenga\n';const blogEntryObj=new blogEntry(null,entryTitle,entryDate,entryTags,entryBody);export{blogEntryObj};
1+
import { blogEntry } from './blogEntryBase.js';
2+
3+
let entryTitle = "Site Progress";
4+
let entryDate = "2024-12-07";
5+
let entryTags = ["pxlNav", "procstack", "github", "github.io", "javascript", "decemeber", "2024"];
6+
let entryBody = `
7+
Gettin this site online!
8+
<br>
9+
<br>It's been quite a bit of work, spread over a longer span of time than I was hoping.
10+
<br>&nbsp;&nbsp; But it's finally coming together nicely!
11+
12+
<div class="blogSpacer"></div>
13+
14+
It's been oddly enjoyable getting <span class="textNudge">pxlNav</span> refactored and accessible from outside of the module.
15+
<br>Cutting out nearly 7000 lines of code,
16+
<br>Comments always the bane of my existence,
17+
<br>&nbsp;&nbsp; But they seem to fill out in time.
18+
19+
<div class="blogSpacer"></div>
20+
21+
Currently general ambiance is my focus.
22+
<br>Things in 3d like to be dark when you introduce the idea of a "light" to them
23+
<br>&nbsp;&nbsp; So making sure shaders are matching textures and lighting takes some time.
24+
<br>
25+
<br>Then mix in modeling, rigging, texturing, animating, and scripting the rest of the site.
26+
<br>&nbsp;&nbsp; Since <span class="textNudge">pxlNav</span> is just what handles Three.js.
27+
<br>
28+
<br>All I can say is having drive for a passion project helps build your skills.
29+
<br>&nbsp;&nbsp; Get's you looking for more outlets to share your work.
30+
<br>&nbsp;&nbsp;&nbsp;&nbsp; And you end up finding other projects people have made that inspire you.
31+
<br>
32+
<br>So here's to future projects and sharing creativity with others!
33+
34+
<div class="blogSpacer"></div>
35+
36+
I just got the camera location warping working from outside of pxlNav.
37+
<br>Trigger a camera warp from a button press using a flag on your tag.
38+
<br>
39+
<br>This brought me to add optional camera positions in your 3d cgi program of choice.
40+
<br>Add a new group under your Camera_grp in your scene,
41+
<br>&nbsp;&nbsp; Just add a Position and lookAt locator/null/empty object in that group,
42+
<br>&nbsp;&nbsp;&nbsp;&nbsp; Then add a "pxlRoomName" & "pxlCameraView" tag to your link on your site.
43+
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "pxlRoomName" is your 'pxlRoom' name,
44+
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "pxlCameraView" is your group name under 'Camera_grp'.
45+
<br>&nbsp;&nbsp; Click your link and watch pxlNav warp your camera to that position!
46+
<br>
47+
<br>Only problem right now is the warping effect isn't running.
48+
<br>&nbsp;&nbsp; I'm likely just not enabling the post-process layer for the effect.
49+
<br>&nbsp;&nbsp;&nbsp;&nbsp; pxlCamera has been reworked a bit up to this point,
50+
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; More testing is required.
51+
<br>
52+
<br>&nbsp; -Kevin Edzenga
53+
`;
54+
55+
56+
const blogEntryObj = new blogEntry(null, entryTitle, entryDate, entryTags, entryBody);
57+
58+
export { blogEntryObj };

0 commit comments

Comments
 (0)