-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from M1nxy/main
Added nice frontend (thanks to @M1nxy)
- Loading branch information
Showing
45 changed files
with
1,064 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: [main] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
env: | ||
# Hosted GitHub runners have 7 GB of memory available, let's use 6 GB | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: yarn install --non-interactive | ||
- name: Build | ||
run: yarn build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: build | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,25 @@ | ||
.DS_Store | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
pnpm-lock.yaml | ||
yarn.lock | ||
package-lock.json | ||
bun.lock |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
label: "Challenges" | ||
collapsible: true # make the category collapsible | ||
collapsed: false # keep the category open by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
id: example | ||
title: Example Challenge | ||
unlisted: true | ||
--- | ||
|
||
{/* remove the unlisted, increment the ids above and provided a sensible title */} | ||
|
||
import Tabs from "@theme/Tabs"; | ||
import TabItem from "@theme/TabItem"; | ||
|
||
{/* Short description of the challenge goes here */} | ||
|
||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> | ||
|
||
<Tabs> | ||
<TabItem value="challenge" label="Challenge"> | ||
{/* challenge code goes here (do not indent)*/} | ||
|
||
```objc | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
``` | ||
|
||
</TabItem> | ||
<TabItem value="solution" label="Solution"> | ||
{/* solution code goes here (do not indent)*/} | ||
|
||
```objc | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- | ||
id: challenge_1 | ||
title: Challenge 1 | ||
sidebar_position: 1 | ||
--- | ||
|
||
import Tabs from "@theme/Tabs"; | ||
import TabItem from "@theme/TabItem"; | ||
|
||
<p>Convert the following piece of Substrate code to Logos.</p> | ||
<Tabs> | ||
<TabItem value="challenge" label="Challenge"> | ||
```objc | ||
#import <UIKit/UIKit.h> | ||
#import <substrate.h> | ||
|
||
@interface SBIconImageView : UIView | ||
@end | ||
|
||
@interface SBHomeScreenBackdropView : UIView | ||
@end | ||
|
||
void orig_SBIconImageView_didMoveToWindow(SBIconImageView *self, SEL _cmd); | ||
|
||
void new_SBIconImageView_didMoveToWindow(SBIconImageView *self, SEL _cmd) { | ||
self.alpha = 0.5; | ||
orig_didMoveToWindow(self, _cmd); | ||
} | ||
|
||
void orig_SBHomeScreenBackdropView_didMoveToSuperview(SBHomeScreenBackdropView *self, SEL _cmd); | ||
|
||
void new_SBHomeScreenBackdropView_didMoveToSuperview(SBHomeScreenBackdropView *self, SEL _cmd) { | ||
self.hidden = true; | ||
orig_SBHomeScreenBackdropView_didMoveToSuperview(self, _cmd); | ||
} | ||
|
||
__attribute__((constructor)) static void initialize() { | ||
MSHookMessageEx( | ||
NSClassFromString(@"SBIconImageView"), | ||
@selector(didMoveToWindow), | ||
(IMP) &new_SBIconImageView_didMoveToWindow, | ||
(IMP *) &orig_SBIconImageView_didMoveToWindow | ||
); | ||
MSHookMessageEx( | ||
NSClassFromString(@"SBHomeScreenBackdropView"), | ||
@selector(didMoveToSuperview), | ||
(IMP) &new_SBHomeScreenBackdropView_didMoveToSuperview, | ||
(IMP *) &orig_SBHomeScreenBackdropView_didMoveToSuperview | ||
); | ||
} | ||
``` | ||
</TabItem> | ||
<TabItem value="solution" label="Solution"> | ||
```objc | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface SBIconImageView : UIView | ||
@end | ||
|
||
@interface SBHomeScreenBackdropView : UIView | ||
@end | ||
|
||
|
||
%hook SBIconImageView | ||
|
||
-(void)didMoveToWindow { | ||
self.alpha = 0.5; | ||
%orig; | ||
} | ||
|
||
%end | ||
|
||
|
||
%hook SBHomeScreenBackdropView | ||
|
||
-(void)didMoveToWindow { | ||
self.hidden = true; | ||
%orig; | ||
} | ||
|
||
%end | ||
``` | ||
</TabItem> | ||
|
||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
id: example | ||
title: Example Lesson | ||
sidebar_position: 0 | ||
unlisted: true | ||
--- | ||
|
||
{/* remove the unlisted, increment the ids above and provided a sensible title */} | ||
|
||
|
||
{/* Lesson content goes here */} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
id: intro | ||
title: Introduction | ||
sidebar_position: -1 | ||
tags: [] | ||
--- | ||
|
||
## Prerequisites | ||
|
||
- Basic [Object-Orientated Programming (OOP)](https://en.wikipedia.org/wiki/Object-oriented_programming) knowledge. | ||
- Either [Theos](https://theos.dev) or [Dragon](https://dragon.cynder.me/en/latest/) installed. | ||
- A text editor or IDE of your choice. | ||
- A jailbroken device or the Xcode Simulator on macOS paired with [Simject](https://github.com/akemin-dayo/simject) | ||
|
||
### Credits: | ||
|
||
- [@Luki120](https://github.com/Luki120) for helping out with some of the issues regarding Substrate + important & valuable contributions. | ||
- [@L1ghtmann](https://github.com/L1ghtmann) for helping out with some issues regarding the tutorial as well as helping make the tutorial more beginner friendly. | ||
|
||
### Support: | ||
|
||
- [iOSJBN Discord Server](https://discord.gg/K3wGBBhPqp) | ||
- [r/jailbreakdevelopers](https://reddit.com/r/jailbreakdevelopers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
id: getting_started | ||
title: Getting Started | ||
sidebar_position: 0 | ||
--- | ||
|
||
## Setting Up The Tweak | ||
|
||
1. Assure that you have [**Theos**](https://theos.dev) set up. The instructions to set up Theos can be found [here](https://theos.dev/docs/installation). Please choose the appropriate operating system in the wiki and install it. | ||
|
||
2. Assure you have some kind of text editor, some good ones being [Visual Studio Code](https://code.visualstudio.com), [Sublime Text](https://www.sublimetext.com), and more! Feel free to use your preferred text editor, however note that **Visual Studio Code** has an **extension** for **Logos**, which can be found [here](https://marketplace.visualstudio.com/items?itemName=tale.logos-vscode). | ||
|
||
3. For easier "view-finding," download a flipboard explorer such as FLEXing ([rootful version](https://github.com/NSExceptional/FLEXing/releases/tag/1.2.0)/[rootless version](https://github.com/PoomSmart/FLEXing/releases/tag/1.5.0)) or [FLEXall](https://DGh0st.github.io/) (rootful only). | ||
|
||
4. To begin run the following command: | ||
|
||
```bash | ||
$THEOS/bin/nic.pl | ||
``` | ||
|
||
:::danger Warning | ||
If this does not work, you have probably set up Theos incorrectly. Please go back to step 1 and fix your installation. | ||
::: | ||
|
||
- This should show different options, one of them being `iphone/tweak`. This option will have a number next to it, which you type in to select that option. | ||
|
||
- After that, the terminal will prompt you with `Project Name (required):`, meaning "what is going to be the name of your tweak?" Please type the name that you want to call the tweak in this space. | ||
|
||
- After _that_, the terminal will prompt you with `Package Name [com.yourcompany.testtweak]:`, meaning "what is going to be the [Bundle ID](https://developer.apple.com/documentation/appstoreconnectapi/bundle_ids) of your tweak?" Most likely it will be `com.yourname.yourtweakname`. Note that it cannot contain any uppercase letters. | ||
|
||
- Next, it will ask you `Author/Maintainer Name [yourname]:`. Please put whatever you want your "developer name" to be if/when you publish the tweak. | ||
|
||
- Furthermore, the terminal will ask you `[iphone/tweak] MobileSubstrate Bundle filter [com.apple.springboard]:`. This essentially means "what do you want your tweak to hook?" (Examples: Twitter tweak: `com.atebits.Tweetie2`, Settings tweak: `com.apple.Preferences`, SpringBoard: `com.apple.springboard`). We will hook SpringBoard for our example tweak, so use `com.apple.springboard`. | ||
|
||
- Then, it will ask `[iphone/tweak] List of applications to terminate upon installation (space-separated, '-' for none) [SpringBoard]:`, just press enter for now on this one. | ||
|
||
- After this, Theos will create a folder with the tweak files inside of it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.