Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/NotePlan/plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jgclark committed Oct 27, 2023
2 parents e88e66d + f158a0c commit f87403b
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 14 deletions.
2 changes: 2 additions & 0 deletions dwertheimer.EventAutomations/src/NPEventBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,13 @@ export async function processTimeLines(paragraphBlock: Array<TParagraph>, config
try {
// First, we need to get all the data necessary to create this event, including user input
// before we can show a status bar
clo(paragraphBlock, `processTimeLines: paragraphBlock contains ${paragraphBlock.length} lines`)
const eventsToCreate = (await confirmEventTiming(paragraphBlock, config)) || []
// Now that we have all the info we need, we can create the events with a status bar
config.calendar = (await checkOrGetCalendar(calendar, true)) || calendar || ''
CommandBar.showLoading(true, `Creating Events:\n(${0}/${eventsToCreate.length})`)
await CommandBar.onAsyncThread()
logDebug(pluginJson, `eventsToCreate.length=${eventsToCreate.length}`)
for (let j = 0; j < eventsToCreate.length; j++) {
const item = eventsToCreate[j]
clo(config, `processTimeLines: config`)
Expand Down
4 changes: 4 additions & 0 deletions np.MeetingNotes/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

See Plugin [README](https://github.com/NotePlan/plugins/blob/main/np.MeetingNotes/README.md) for details on available commands and use case.

## [1.2.1] - 2023-10-24 @dwertheimer

- hiding plugin from directory

## [1.2.0] - 2023-09-25 (@dwertheimer)

- Adding some intelligence to try to pick up existing meeting notes so as to not create them again
Expand Down
4 changes: 2 additions & 2 deletions np.MeetingNotes/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"noteplan.minAppVersion": "3.5.0",
"plugin.id": "np.MeetingNotes",
"plugin.name": "✍️ Meeting Notes",
"plugin.version": "1.2.0",
"plugin.version": "1.2.1",
"plugin.description": "Create Meeting Notes from events using templates.",
"plugin.author": "NotePlan",
"plugin.dependencies": [],
"plugin.script": "script.js",
"plugin.url": "CorePlugins",
"plugin.hidden": false,
"plugin.hidden": true,
"plugin.commands": [
{
"name": "newMeetingNote",
Expand Down
4 changes: 4 additions & 0 deletions np.Templating/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

See Plugin [README](https://github.com/NotePlan/plugins/blob/main/np.Templating/README.md) for details on available commands and use case.

## [1.9.12] 2023-10-24 @dwertheimer

- Changed title to just 'Templating']

## [1.9.11] 2023-10-12 @jgclark
- add 'todayProgressFromTemplate' template command (from Habits & Summaries v0.20)

Expand Down
6 changes: 3 additions & 3 deletions np.Templating/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"macOS.minVersion": "10.13.0",
"noteplan.minAppVersion": "3.5.0",
"plugin.id": "np.Templating",
"plugin.name": "📒 np.Templating",
"plugin.version": "1.9.11",
"plugin.lastUpdateInfo": "1.9.11: add 'todayProgressFromTemplate' template command.\n1.9.10: add folder attribute to np:new for xcallback creation inside a specific folder",
"plugin.name": "📒 Templating",
"plugin.version": "1.9.12",
"plugin.lastUpdateInfo": "1.9.12: Changed title to just 'Templating'.\n1.9.11: add 'todayProgressFromTemplate' template command.\n1.9.10: add folder attribute to np:new for xcallback creation inside a specific folder",
"plugin.description": "Templating Plugin for NotePlan",
"plugin.author": "Mike Erickson (@codedungeon)",
"plugin.dependencies": [],
Expand Down
6 changes: 3 additions & 3 deletions np.plugin-test/src/commandListGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export async function getFilteredPluginData(showInstalledOnly: boolean): Promise
plugin.updateIsAvailable = isInstalled && plugin.version !== installedVersion?.version
plugin.isInstalled = installedVersion != null
plugin.installedVersion = installedVersion?.version || ''
plugin.installLink = createRunPluginCallbackUrl(pluginJson['plugin.id'], 'Install Plugin and Re-Generate Listing', ['false'])
plugin.installLink = createRunPluginCallbackUrl(pluginJson['plugin.id'], 'Install Plugin and Re-Generate Plugin Listing Page', ['false'])
plugin.documentation = plugin.repoUrl || ''
const commands =
plugin?.commands?.reduce((acc, c) => {
Expand Down Expand Up @@ -188,10 +188,10 @@ export async function generatePluginCommandList(pluginID: string = '', listExten
let installLink = ''
if (isInstalled) {
if (updateIsAvailable) {
installLink = ` ${createPrettyRunPluginLink(`update to latest version`, pluginJson['plugin.id'], 'Install Plugin and Re-Generate Listing', [plugin.name])}`
installLink = ` ${createPrettyRunPluginLink(`update to latest version`, pluginJson['plugin.id'], 'Install Plugin and Re-Generate Plugin Listing Page', [plugin.name])}`
}
} else {
installLink = ` ${createPrettyRunPluginLink(`install it`, pluginJson['plugin.id'], 'Install Plugin and Re-Generate Listing', [plugin.name])}`
installLink = ` ${createPrettyRunPluginLink(`install it`, pluginJson['plugin.id'], 'Install Plugin and Re-Generate Plugin Listing Page', [plugin.name])}`
}
output.push(`---\n## ${plugin.name} v${plugin.version}${installLink}`)
output.push(`> ${plugin.desc}`)
Expand Down
26 changes: 20 additions & 6 deletions np.plugin-test/src/react/PluginListingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function CommandTable({ commands, viewOption }: CommandTableProps): React$Node {
{viewOption !== 'commandsOnly' && (
<thead>
<tr>
<th style={{ width: '15%' }}>Command</th>
<th style={{ width: '40%' }}>Command</th>
<th className="w3-rest">Description</th>
</tr>
</thead>
Expand All @@ -117,7 +117,22 @@ type PluginSectionProps = {
* HTML OUTPUT FOR EACH PLUGIN
*/
function PluginSection({ plugin, viewOption, index }: PluginSectionProps): React$Node {
const installedDisplayString = plugin.isInstalled ? 'installed' : 'install'
const installedDisplayString = plugin.isInstalled ? (
'(installed)'
) : (
<a href={plugin.installLink} className="install-btn button">
Install
</a>
)

const docsString = plugin.documentation ? (
<a href={plugin.documentation} className="documentation-link button">
Documentation
</a>
) : (
''
)

const updateIsAvailableString = plugin.updateIsAvailable ? '(update available)' : ''

const pluginSectionStyle = {
Expand All @@ -131,9 +146,8 @@ function PluginSection({ plugin, viewOption, index }: PluginSectionProps): React
{updateIsAvailableString && <span className="updateIsAvailable">{updateIsAvailableString}</span>}
<span className="pluginBy">by: </span>
<span className="pluginAuthor">{plugin.author}</span>
<span className={installedDisplayString}>{installedDisplayString}</span>
{false && <span className="installLink">{plugin.installLink}</span>}
{false && <span className="documentation">{plugin.documentation}</span>}
{docsString}
<span className={plugin.isInstalled ? 'installed' : 'install'}>{installedDisplayString}</span>
</h3>
{viewOption === 'all' && (
<>
Expand Down Expand Up @@ -206,10 +220,10 @@ function PluginListingPage(props: Props): React$Node {
return (
<>
<div className="sticky" style={filterDivStyle}>
<input type="text" placeholder="Filter commands..." value={filter} onChange={(e) => setFilter(e.target.value)} />
<Dropdown options={installationOptions} selectedValue={installationFilter} onValueChange={setInstallationFilter} />
<Dropdown options={viewOptions} selectedValue={viewOption} onValueChange={setViewOption} />
<Dropdown options={categoryFilterOptions} selectedValue={categoryFilter} onValueChange={setCategoryFilter} />
<input type="text" placeholder="Filter commands..." value={filter} onChange={(e) => setFilter(e.target.value)} />
</div>
<div className="PluginListingPage">
{filteredPluginsAndCommands?.length ? (
Expand Down

0 comments on commit f87403b

Please sign in to comment.