diff --git a/package.sh b/package.sh index 295de444..6cc5f612 100755 --- a/package.sh +++ b/package.sh @@ -1,3 +1,7 @@ echo "Packaging the application from build/" 7z a -tzip package.zip ./build/* -echo "Done. Package is in package.zip and is ready to publish!" \ No newline at end of file +echo "Done. Package is in package.zip and is ready to publish!" + +# Updating safari Xcode Project +echo "Packaging for Safari" +cp ./build/* "./safari/Shared (Extension)\Resources" \ No newline at end of file diff --git a/safari/BetterSEQTA+.xcodeproj/project.pbxproj b/safari/BetterSEQTA+.xcodeproj/project.pbxproj index 0d664afb..1af5f8b1 100644 --- a/safari/BetterSEQTA+.xcodeproj/project.pbxproj +++ b/safari/BetterSEQTA+.xcodeproj/project.pbxproj @@ -716,6 +716,7 @@ buildSettings = { CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 5949S6UQCX; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "iOS (Extension)/Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = "BetterSEQTA+ Extension"; @@ -746,6 +747,7 @@ buildSettings = { CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 5949S6UQCX; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "iOS (Extension)/Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = "BetterSEQTA+ Extension"; @@ -780,6 +782,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 5949S6UQCX; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "iOS (App)/Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = "BetterSEQTA+"; @@ -817,6 +820,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 5949S6UQCX; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "iOS (App)/Info.plist"; INFOPLIST_KEY_CFBundleDisplayName = "BetterSEQTA+"; diff --git a/safari/BetterSEQTA+.xcodeproj/project.xcworkspace/xcuserdata/sethburkart.xcuserdatad/UserInterfaceState.xcuserstate b/safari/BetterSEQTA+.xcodeproj/project.xcworkspace/xcuserdata/sethburkart.xcuserdatad/UserInterfaceState.xcuserstate index 176266a0..3567560e 100644 Binary files a/safari/BetterSEQTA+.xcodeproj/project.xcworkspace/xcuserdata/sethburkart.xcuserdatad/UserInterfaceState.xcuserstate and b/safari/BetterSEQTA+.xcodeproj/project.xcworkspace/xcuserdata/sethburkart.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/safari/BetterSEQTA+.xcodeproj/xcuserdata/sethburkart.xcuserdatad/xcschemes/xcschememanagement.plist b/safari/BetterSEQTA+.xcodeproj/xcuserdata/sethburkart.xcuserdatad/xcschemes/xcschememanagement.plist index 4865fbf4..cc3d30cf 100644 --- a/safari/BetterSEQTA+.xcodeproj/xcuserdata/sethburkart.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/safari/BetterSEQTA+.xcodeproj/xcuserdata/sethburkart.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,12 +7,12 @@ BetterSEQTA+ (iOS).xcscheme_^#shared#^_ orderHint - 1 + 0 BetterSEQTA+ (macOS).xcscheme_^#shared#^_ orderHint - 0 + 1 diff --git a/src/SEQTA.js b/src/SEQTA.js index 0c4bb8b0..a8f3f832 100644 --- a/src/SEQTA.js +++ b/src/SEQTA.js @@ -102,12 +102,24 @@ function OpenWhatsNewPopup() { let text = stringToHTML( String.raw`
-

3.0.0 - BetterSEQTA+ *Complete Overhaul*

+

3.1.1 - Minor Bug fixes

+
  • Fixed assessments overlapping
  • +
  • Fixed houses not displaying if they aren't a specific color
  • +
  • Fixed Chrome Webstore Link
  • + +

    3.1.0 - Design Improvements

    +
  • Minor UI improvements
  • +
  • Added Animation Speed Slider
  • +
  • Animation now enables and disables without reloading SEQTA
  • +
  • Changed logo
  • + +

    3.0.0 - BetterSEQTA+ *Complete Overhaul*

  • Redesigned appearance
  • Upgraded to manifest V3 (longer support)
  • Fixed transitional glitches
  • Under the hood improvements
  • Fixed News Feed
  • +

    2.0.7 - Added support to other domains + Minor bug fixes

  • Fixed BetterSEQTA+ not loading on some pages
  • Fixed text colour of notices being unreadable
  • Fixed pages not reloading when saving changes
  • 2.0.2 - Minor bug fixes

  • Fixed indicator for current lesson
  • Fixed text colour for DM messages list in Light mode
  • Fixed user info text colour
  • Sleek New Layout

  • Updated with a new font and presentation, BetterSEQTA+ has never looked better.
  • @@ -982,7 +994,6 @@ function RunExtensionSettingsJS() { const aboutsection = document.querySelector("#aboutsection"); const shortcutsection = document.querySelector("#shortcutsection"); const miscsection = document.querySelector("#miscsection"); - //const mainpage = document.querySelector("#mainpage"); const colorpicker = document.querySelector("#colorpicker"); const animatedbk = document.querySelector("#animatedbk"); const bkslider = document.querySelector("#bksliderinput"); @@ -1020,12 +1031,6 @@ function RunExtensionSettingsJS() { var validURL = false; var validName = false; - const github = document.getElementById("github"); - - function openGithub() { - chrome.runtime.sendMessage({ type: "githubTab" }); - } - function resetActive() { for (let i = 0; i < navbuttons.length; i++) { navbuttons[i].classList.remove("activenav"); @@ -1183,7 +1188,6 @@ function RunExtensionSettingsJS() { updateUI(result); }); - github.addEventListener("click", openGithub); aboutsection.addEventListener("click", () => { resetActive(); aboutsection.classList.add("activenav"); @@ -1357,25 +1361,12 @@ function CallExtensionSettings() {
    - + Chrome Webstore - - - - - Firefox Add-ons - - - - - - - betterseqta.com -
    @@ -1558,7 +1549,7 @@ function CallExtensionSettings() {
    -
    +

    BetterSEQTA+

    @@ -1567,6 +1558,7 @@ function CallExtensionSettings() {
    + @@ -1584,12 +1576,10 @@ function CallExtensionSettings() {
    -
    -

    Maintained by SethBurkart123

    -

    What's new in v${ - chrome.runtime.getManifest().version -}

    - +
    +

    By SethBurkart123

    + +
    `); document.body.append(Settings.firstChild); @@ -1998,8 +1988,9 @@ function AddBetterSEQTAElements(toggle) { } houseelement.innerText = students[index].year + students[index].house; - } catch(e) { - console.log(e); + } catch (error) { + console.log(students[index]); + houseelement.innerText = students[index].house; } } else { houseelement.innerText = students[index].year; @@ -2064,7 +2055,7 @@ function AddBetterSEQTAElements(toggle) { if (toggle) { // Creates settings and dashboard buttons next to alerts var SettingsButton = stringToHTML( - "", + "", ); var ContentDiv = document.getElementById("content"); ContentDiv.append(SettingsButton.firstChild); diff --git a/src/popup/index.html b/src/popup/index.html index fe2a3024..65a70d70 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -7,7 +7,7 @@ Vite + React + TS -
    +
    diff --git a/src/popup/src/App.tsx b/src/popup/src/App.tsx index bcbcafae..ebdc8d34 100644 --- a/src/popup/src/App.tsx +++ b/src/popup/src/App.tsx @@ -1,4 +1,5 @@ import './App.css' +import Slider from './components/Slider' import Switch from './components/Switch' function App() { @@ -7,8 +8,11 @@ function App() { } return ( -
    +
    +
    + console.log(value)} /> +
    diff --git a/src/popup/src/components/Slider.tsx b/src/popup/src/components/Slider.tsx new file mode 100644 index 00000000..c662b6c0 --- /dev/null +++ b/src/popup/src/components/Slider.tsx @@ -0,0 +1,34 @@ +import React, { useState } from 'react'; + +interface Slider { + onValueChange: (value: number) => void; +} + +const Slider: React.FC = ({ onValueChange }) => { + const [sliderValue, setSliderValue] = useState(0); + + const handleInputChange = (event: React.ChangeEvent) => { + const value = parseInt(event.target.value, 10); + setSliderValue(value); + }; + + const handleMouseUp = () => { + onValueChange(sliderValue); + }; + + return ( +
    + +
    + ); +}; + +export default Slider; \ No newline at end of file diff --git a/src/popup/tailwind.config.js b/src/popup/tailwind.config.js index 0c49dd0f..cf1ad7f8 100644 --- a/src/popup/tailwind.config.js +++ b/src/popup/tailwind.config.js @@ -4,6 +4,7 @@ export default { "./index.html", "./src/**/*.{js,ts,jsx,tsx}", ], + darkMode: "class", theme: { extend: { colors: {