-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #68 from saertna/ReleaseNotes
Show Release notes
- Loading branch information
Showing
16 changed files
with
1,023 additions
and
76 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import replace from "@rollup/plugin-replace"; | ||
import typescript from "rollup-plugin-typescript2"; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
import fs from 'fs'; | ||
|
||
const manifestStr = fs.readFileSync("manifest.json", "utf-8"); | ||
const manifest = JSON.parse(manifestStr); | ||
|
||
const packageString = `const PLUGIN_VERSION = "${manifest.version}";`; | ||
|
||
export default { | ||
input: 'src/main.ts', | ||
output: { | ||
file: 'main.js', | ||
format: 'cjs', | ||
exports: 'auto' | ||
}, | ||
external: ['obsidian', 'crypto-js'], | ||
plugins: [ | ||
resolve(), | ||
nodeResolve(), | ||
typescript({ | ||
inlineSourceMap: true, // Ensure inline source map is generated | ||
inlineSources: true, // Ensure inline sources are included | ||
tsconfig: "tsconfig.json", // Specify the path to your tsconfig.json file | ||
abortOnError: false // Continue bundling even if there are TypeScript errors | ||
}), | ||
{ | ||
name: 'debug-log', | ||
// Add a console log before the replace plugin | ||
buildStart() { | ||
console.log('Starting Rollup build...'); | ||
} | ||
}, | ||
replace({ | ||
preventAssignment: true, | ||
values: { | ||
// Replace the declaration of PLUGIN_VERSION directly | ||
'declare const PLUGIN_VERSION: string;': packageString | ||
} | ||
}), | ||
{ | ||
name: 'debug-log', | ||
// Add a console log after the replace plugin | ||
buildEnd() { | ||
console.log('Rollup build completed.'); | ||
console.log(`packageString content: ${packageString}`) | ||
} | ||
} | ||
] | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const FIRST_TIME = ` | ||
Imagine transforming your knowledge management into an adventure where every step forward is a celebration. Introducing the Obsidian Gamification Plugin – a tool designed to harness the motivating power of game techniques and apply it to our pursuit of knowledge. | ||
This plugin reimagines the way we interact with our knowledge base. By integrating game-like elements, it offers rewards for your progress, nurtures consistency, and makes the journey of learning a truly motivating experience. From achieving milestones to conquering challenges that shape your learning path, this plugin adds a layer of excitement to your knowledge management process. | ||
Thank you & Enjoy! | ||
`; | ||
|
||
export const RELEASE_NOTES: { [k: string]: string } = { | ||
Intro: `After each update you'll be prompted with the release notes. You can disable this in plugin settings. | ||
I develop this plugin as a hobby, spending my free time doing this. If you find it valuable, then please say THANK YOU or... | ||
<div class="ex-coffee-div"><a href="https://ko-fi.com/andreastrebing"><img src="https://cdn.ko-fi.com/cdn/kofi3.png?v=3" height=45></a></div> | ||
`, | ||
"0.0.89": ` | ||
## New | ||
- Introduction to Release Note showcase | ||
- Added automatic triggering of rate, can be enabled in settings`, | ||
"0.0.88":` | ||
## Changed | ||
- Support more levels, up to 200, and fix incorrect calculations | ||
- Make layer 2 and layer 3 in 'progressive summarization' score more accurate`, | ||
"0.0.87":` | ||
## New | ||
- check for new available version`, | ||
"0.0.86":` | ||
## New | ||
- support for mobile devices`, | ||
"0.0.85":` | ||
## New | ||
- Store received Badges for recover possibility`, | ||
"0.0.84":` | ||
## Improved | ||
- Formating booster board by`, | ||
"0.0.8":` | ||
## Start | ||
- First Release for the gamified personal knowledge management in Obsidian!`, | ||
}; |
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.