File tree Expand file tree Collapse file tree 1 file changed +18
-11
lines changed
Expand file tree Collapse file tree 1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -20,23 +20,22 @@ const rules = computed(() => getRules(props.filter))
2020 <li v-for =" rule in rules" :key =" rule.language + rule.id" class =" rule-item" >
2121 <div class =" rule-header" >
2222 <a :href =" rule.link" class =" rule-name" target =" _blank" >{{ rule.name }}</a >
23- <Badge v-if =" rule.hasFix" type =" tip" text =" 🛠️ Has Fix" />
24- <div v-else />
25- </div >
26- <div class =" rule-details" >
2723 <div class =" rule-badges" >
2824 <a :href =" `/catalog/${rule.language}/`" >
2925 <Badge type =" info" :text =" languages[rule.language]" />
3026 </a >
31- <Badge type =" info " : text =" rule.type " />
27+ <Badge v-if = " rule.hasFix " type =" tip " text =" 🛠️ Fix " />
3228 </div >
33- <!--
34- <div class="features">
35- <span v-for="feature in rule.features" :key="feature" class="feature-tag">
36- {{ feature }}
37- </span>
29+ </div >
30+ <div class =" rule-details" >
31+ <div class =" rule-badges" >
32+ <Badge v-if =" rule.type === 'Pattern'" type =" info" text =" Simple Pattern" />
33+ <template v-else >
34+ <code class =" used" v-for =" usedRule in rule.rules" >
35+ {{ usedRule }}
36+ </code >
37+ </template >
3838 </div >
39- -->
4039 <a :href =" rule.playgroundLink" class =" playground-link" target =" _blank" >
4140 Try in Playground →
4241 </a >
@@ -86,6 +85,14 @@ a:hover {
8685 align-items : center ;
8786}
8887
88+ .used {
89+ filter : saturate (0 );
90+ user-select : none ;
91+ height : 24px ;
92+ line-height : 24px ;
93+ padding-top : 0 ;
94+ }
95+
8996.playground-link {
9097 font-size : 0.8em ;
9198 color : var (--vp-button-brand-bg );
You can’t perform that action at this time.
0 commit comments