|
@ -20,7 +20,7 @@ export default class extends Controller { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
icon(drawing) { |
|
|
icon(drawing) { |
|
|
return `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current mx-4" fill="none" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
|
return `<svg xmlns="http://>']www.w3.org/2000/svg" class="h-6 w-6 shrink-0 stroke-current mx-4" fill="none" viewBox="0 0 24 24">
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="${drawing}" /> |
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="${drawing}" /> |
|
|
</svg>` |
|
|
</svg>` |
|
|
} |
|
|
} |
|
@ -44,8 +44,8 @@ export default class extends Controller { |
|
|
|
|
|
|
|
|
log(type, message) { |
|
|
log(type, message) { |
|
|
switch (type) { |
|
|
switch (type) { |
|
|
case 'notice': console.info(`FLASH:${type} <${message}>`); break |
|
|
|
|
|
case 'alert': console.warn(`FLASH:${type} <${message}>`); break |
|
|
|
|
|
|
|
|
case 'notice': console.info(`FLASH:${type} => ${message}`); break |
|
|
|
|
|
case 'alert': console.warn(`FLASH:${type} => ${message}`); break |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|