Skip to content

Commit

Permalink
Speculation rules update, copilot instructions added, yield awaits ad…
Browse files Browse the repository at this point in the history
…ded, Workbox update
  • Loading branch information
chrisblakley committed Oct 30, 2024
1 parent 5867144 commit 5e5a8f5
Show file tree
Hide file tree
Showing 34 changed files with 1,099 additions and 404 deletions.
60 changes: 60 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Copilot Instructions

## Code Formatting Guidelines

1. **Conditionals**:
- Always add spaces inside the parentheses of conditionals.
```
//Correct
if ( condition ){
// code
}

//Incorrect
if(condition){
// code
}
```

2. **Indentation**:
- Always use tabs instead of spaces for indentation.
```
//Correct
function example() {
↹let x = 1;
}

//Incorrect
function example() {
let x = 1;
}
```

3. **Comments**:
- Never put a space between the `//` and the first character of the comment.
```
//Correct
//This is a comment

// Incorrect
// This is a comment
```

4. **CSS and SASS**:
- Write CSS and SASS rules in a single line, but nesting is allowed.
```
//Correct
.container {display: flex; gap: 5px;
.item {margin: 10px;}
}

//Incorrect
.container {
display: flex;
.item {
margin: 10px;
}
}
```

Please follow these guidelines to ensure consistency and readability in the codebase.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nebula-wp",
"title": "Nebula",
"description": "Advanced Starter WordPress Theme for Developers",
"version": "12.4.17.558",
"version": "12.5.30.593",
"homepage": "https://gearside.com/nebula/",
"repository": {
"type": "git",
Expand Down
905 changes: 620 additions & 285 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Nebula-Child/assets/css/admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions Nebula-Child/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ jQuery(function(){
}

window.performance.mark('(Child) DOM Ready [End]');
window.performance.measure('(Child) DOM Ready Functions', '(Child) DOM Ready [Start]', '(Child) DOM Ready [End]');
window.performance.measure('(Child) DOM Ready Functions', '(Child) DOM Ready [Start]', '(Child) DOM Ready [End]', {
detail: {
devtools: {
dataType: "track-entry",
track: "Nebula",
}
}
});
}); //End Document Ready

/*==========================
Expand All @@ -38,7 +45,14 @@ window.addEventListener('load', function(){
// }, {passive: true}); //End Window Resize

window.performance.mark('(Child) Window Load [End]');
window.performance.measure('(Child) Window Load Functions', '(Child) Window Load [Start]', '(Child) Window Load [End]');
window.performance.measure('(Child) Window Load Functions', '(Child) Window Load [Start]', '(Child) Window Load [End]', {
detail: {
devtools: {
dataType: "track-entry",
track: "Nebula",
}
}
});
}); //End Window Load

/*==========================
Expand Down
3 changes: 1 addition & 2 deletions Nebula-Child/assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@
@import "sidebar";
@import "footer";

//Enable View Transitions
@view-transition {navigation: auto;}
@view-transition {navigation: auto;} //Multi-Page View Transitions
4 changes: 2 additions & 2 deletions Nebula-Child/resources/sw.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//BEGIN automated edits. These will be automatically overwritten.
const THEME_NAME = 'nebula-child';
const NEBULA_VERSION = 'v12.4.17.558'; //Tuesday, September 17, 2024 1:24:04 PM
const NEBULA_VERSION = 'v12.5.30.593'; //Wednesday, October 30, 2024 2:13:16 PM
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';
const MANIFEST = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/inc/manifest.json';
const HOME_URL = 'https://nebula.gearside.com/';
//END automated edits

importScripts('https://cdn.jsdelivr.net/npm/workbox-sw@7.1.0/build/workbox-sw.min.js'); //DO NOT FORGET: Update Workbox Window in the optimization.js module!
importScripts('https://cdn.jsdelivr.net/npm/workbox-sw@7.3.0/build/workbox-sw.min.js'); //DO NOT FORGET: Update Workbox Window in the optimization.js module!
workbox.setConfig({debug: false}); //https://developers.google.com/web/tools/workbox/guides/troubleshoot-and-debug
//The Service Worker console can be inspected by visiting chrome://inspect/#service-workers

Expand Down
4 changes: 2 additions & 2 deletions Nebula-Child/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/login.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/pre.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5e5a8f5

Please sign in to comment.