Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search Plugin #1330

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

search Plugin #1330

wants to merge 1 commit into from

Conversation

H91011
Copy link

@H91011 H91011 commented Aug 5, 2020

Summary

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Repo settings
  • Other, please describe:

If changing the UI of default theme, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

You have tested in the following browsers: (Providing a detailed version will be better.)

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature
  • Related documents have been updated
  • Related tests have been updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

@vercel
Copy link

vercel bot commented Aug 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.


return String(string).replace(/[&<>"']/g, s => entityMap[s]);
function ClearLabelStyle () {
console.log('ClearLabelStyle tetiklendi')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Console.log should be removed.

Copy link
Member

@sy-records sy-records left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't recommend modifying the original plugin directly, and it doesn't seem to be compatible with previous configurations.

You can add features, but don't delete the previous ones.

@trusktr trusktr marked this pull request as draft August 6, 2020 02:31
@trusktr
Copy link
Member

trusktr commented Aug 8, 2020

I don't recommend modifying the original plugin directly, and it doesn't seem to be compatible with previous configurations.

@sy-records That's true.

I had asked @H91011 to open this PR so we could see what his search plugin does. But build didn't succeed.

@H91011 Does npm install work for you on this branch (if you first delete node_modules folder)?

@trusktr
Copy link
Member

trusktr commented Aug 8, 2020

@H91011 Are the changes backwards-compatible (in case we decide to move forward with something later)?

Nite at the moment we're getting test infrastructure in place and stabilizing the code before we try to add new features. But if you can get this pull request working so that the build is green, that would be awesome!

You can check the build logs here (click "Details") to see why it failed. Also you should be able to run the commands on your local system too, f.e. npm install && npm run build && npm test to see if it passes for you locally.

Copy link
Member

@Koooooo-7 Koooooo-7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still work in process, or it seems out of date.

for (let i = 0; i < data.length; i++) {
const post = data[i];
let matchesScore = 0;
let resultStr = '';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you have moved the score metric, what's the rules that sorting the similar match results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants