Middleware ignored during static generation?

I currently have a middleware parsing .md files for the respective route being accessed. This works well in dev mode, however when I run the generate command the pages do not contain the parsed .md data (component data is still there).
Is this intended? If so, is it possible to run middleware during static generation?

@NateTheGreatt I was doing same thing past week, Suggest you using markdown loaders for this.
working example.
nuxt.config.js
nuxt project src
BTW about your situation i think you are parsing it using a directive or mounted() entry point.

Thanks for the suggestion @pi0 !
This is my component for display pages:
import axios from 'axios'
import marked from 'marked'

var baseUrl = 'http://localhost:3000'

export default function (context, next) {
  var route = context.route
  if (route.name) {
    var url = baseUrl

    if (route.name === 'log') url += '/posts/'
    else url += '/pages/'

    url += `${route.name}.md`

    axios.get(url)
      .then((res) => {
        context.html = marked(res.data)
        next()
      })
      .catch((e) => {
        next()
      })
  } else next()
}

context.html is generated by the middleware

Would you please also share your middle-ware implementation ?

Whoops, meant to but while editing accidentally removed it
import axios from 'axios'
import marked from 'marked'

var baseUrl = 'http://localhost:3000'

export default function (context, next) {
  var route = context.route
  if (route.name) {
    var url = baseUrl

    if (route.name === 'log') url += '/posts/'
    else url += '/pages/'

    url += `${route.name}.md`

    axios.get(url)
      .then((res) => {
        context.html = marked(res.data)
        next()
      })
      .catch((e) => {
        next()
      })
  } else next()
}

Hi @NateTheGreatt
The middleware is called on the static generation, but you have to know that the server is not listening, so http://localhost:3000 will be 404.
You should open 2 tabs in your terminal with:

nuxt dev
nuxt generate

Ah, of course -_-. Thanks for pointing that out!


EventLogging is a registry value not a key

Is says to set the EventLogging key to a REG_DWORD value but it is a value not a key

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: dd180142-4c19-8abc-ecce-e4c7e5ac8951
Version Independent ID: fc5bba87-afad-1729-8f7e-333c73188b73
Content: Transport Layer Security (TLS) registry settings
Content Source: WindowsServerDocs/security/tls/tls-registry-settings.md
Product: windows-server
Technology: security
GitHub Login: @Andrei-Popov
Microsoft Alias: wscontent

We hugely appreciate your contribution, feedback, and support to our technical documentation.
We’ve phased out GitHub Issues on this repository as the feedback mechanism for content and have replaced it with a new feedback system. For more information see, Content User Feedback. As part of this rollout, we are migrating your issue where our team will use your comments to improve the documentation experience. Unfortunately, this does mean you won't be able to access this issue after the migration is complete.
All issues will be migrated by Thursday 29th August 2024.
Once again, thank you for your valuable feedback, we hope you’ll continue to contribute using our new feedback system.


Random Seg Fault with Quick Sort

Application Seg Faults at times. A specific input patter might be causing this.

Bug Fixed in commit 905a4bc22bbb09f60779025b5103ebb96e02e0f1


there is a problem with “yt-dls” package

hey
hope you doin fine
there is a problem with yt-dls package when downloading p0rn videos is happening
is there a solution?
i tried couple of things but didn’t work
iPhone 13 iOS 16.4.1 a-Shell mini

Have you tried these steps? I'm planning to make it automatic in the future but right now it has to be manual


Code drone launcher

Should also be pretty simple, move servo one way on startup, move it the other if some buttons are pressed, pretty much a copy-paste of how claw works
assigning to @VeganPorkChop

done


Swift 4 support?

The documentation mentions Swift 3 compatibility, and the package manager example uses the Swift 3 syntax.

Updated for swift 4!


RDKTV-19524 : Cleanup Headers for FactoryIF, Protect, EMP and Plugin …

…cleanup

Closing older PRs. Pls rebase and create new PR on latest sprint/main branch if still required.


[next] Wrap connectors into database plugins

Description

Adds basic types and a wrapping function to allow existing connectors to function as plugins
Checklist

[ ] For UI or styling changes, I have added a screenshot or gif showing before & after
[ ] I have added a changeset

Should probably add a standard columnTypes, rows, and queryRunner type in a .d.ts somewhere (maybe db-commons) so there aren't typedefs in every file

Agree; I'll open an issue, should probably go into db-commons


Broken link to "capabilities and limitations" in AutoGraph guide

https://www.tensorflow.org/guide/autograph has a link to Autograph capabilities and limitations.  The URL is https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/autograph/LIMITATIONS.md, but this is a dead link.  The corrected link is https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/LIMITATIONS.md.

Cc @alextp.

Queue bot complaining that I didn't answer the list of questions...

@lamberta can you update the page? I'm a little lost as to what change needs to be made now that we're changing the hosting of things

Probably worth a quick grep to see if there are other bad links to contrib.

Thanks. That file is here in the docs repo: https://github.com/tensorflow/docs/blob/master/site/en/guide/autograph.ipynb
But, yes, if it's out of contrib we should grep around and update.

Fixed contrib links. What about from tensorflow.contrib import autograph ?

For now the import is still through contrib; that should stay.
On Fri, Sep 14, 2018 at 9:42 AM Billy Lamberta<EMAIL_ADDRESS>wrote:

Fixed contrib links. What about from tensorflow.contrib import autograph ?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/22280#issuecomment-421414988,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAATxUGgbzvc8L7FxwXzS3oxaBF61O-Iks5ua9xmgaJpZM4Wphla
.

--

Alex

This is broken again. I think the new link should be:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/limitations.md


SyntaxError: Unable to extract total number of results from header

I followed the instructions from the README and get this in the console:
SyntaxError

columnNumber: 20

fileName: "harvester.js"

lineNumber: 222

message: "Unable to extract total number of results from header"

stack: "die@debugger eval code:222:20\nnext@debugger eval code:164:11\n"

title: "Unexpected Markup Error"

__proto__: Object { stack: "", … }
debugger eval code:80:4
Object { lastPageSnapshot: DocumentFragment […] }

Do you still have the page open in your browser tabs?

Scratch that, I'm getting it too. It's happening because GitHub changed their code... again.
<div class="d-flex flex-column flex-md-row flex-justify-between border-bottom pb-3 position-relative">
    <h3>    112,332 code results </h3>

I'm afraid this is to be expected... I'll amend a fix and hope it'll take a while for them to change their minds again. 😞

Alright, try again now. =) Please yell out if you encounter any other issues, okay? Thanks!

Thanks, I can confirm it worked for me. If only GitHub would stabilize an actual API for this kind of search eh?

HAHAHAHAH! Oh man, you're tellin' me. 😅 I'm still holdin' out for the day GitHub add proper search functionality for this, because the song-and-dance routine of scraping data from AJAX-loaded search-result pages and waiting for the parsers to break at the next minor markup change... yeah, that's reeeeeeeeeally gotta stop. :(

Especially since it's part of the process of getting linguist PRs merged.

Heh, exactly.
A couple of years ago, Linguist contributors already had tools to perform automated searching and downloading of files to gauge in-the-wild usage of new formats (as well as locating any potential naming conflicts). I was halfway through writing one of my own (in Perl) when GitHub changed the rules of their search engine, limiting it to logged-in members only.
This, of course, broke everybody's tools we were using or working on, and this harvester script was the eventual outcome. 😥 It's less than ideal, but it's the best I can do without risk of jeopardising user accounts...


Add duedex gateway

增加新的gateway duedex

New gateway support: www.DueDEX.com
DueDEX is a crypto derivatives trading platform registered in Belize. The exchange offers the trade of perpetual swap and futures contracts with up to 100x leverage.
DueDEX = Due + Derivatives + Exchange
Powered by unique risk management tools and promise of no internal trading desk, DueDEX strives to be the fairest crypto exchange. Built upon end-to-end multi-sig secure cold wallet storage and with no hot wallet involved, DueDEX aims to deliver the best crypto trading services by combining secure and robust platform, strong product innovation, and professional customer services.

感谢贡献代码，但是考虑到币圈交易所的复杂性，我们原则上不会再新增前10名以外的交易所接入了，请问这家交易所有什么特色的部分或者服务吗？