jeffalo / ocular

forum search for scratch
https://ocular.jeffalo.net
52 stars 27 forks source link

Browse page text changes #150

Closed Oren-Lindsey closed 2 years ago

Oren-Lindsey commented 2 years ago

Describe the bug A clear and concise description of what the bug is. When you use the browse page the text changes when you click "go" To Reproduce Steps to reproduce the behavior:

  1. Go to /browse, the browse page
  2. Note the text. It says "note: this feature is in beta and may be changed at any time. it's also a bit slow due to scratchdb things."
  3. Click "go"
  4. The text changes to "note: this feature is in beta and may change at any time. also it's a bit slow due to scratchdb things."

Expected behavior A clear and concise description of what you expected to happen. the text shouldn't change Screenshots If applicable, add screenshots to help explain your problem. Before:

Screen Shot 2022-04-09 at 4 59 55 PM

After:

Screen Shot 2022-04-09 at 4 59 39 PM

Desktop (please complete the following information):

Additional context 😛

Oren-Lindsey commented 2 years ago

aha found the problem. browse/index.vue says one thing but browse/_id.vue says another

jeffalo commented 2 years ago

code duplication moment

hello-smile6 commented 2 years ago

code duplication moment

Use environment variables (Or require() a .json file) for anything that has text! Then you won't have that issue!