public function detect()
    {
        
        $components = $this->finder()->detect();
        if (!$this->isValidRoute()) {
            return $components;
        }
        $this->app->make('events')->fire('antares.ui-components: detecting');
        $this->app->make('events')->fire(new ComponentsDetecting());
        
        
        $service = app(Service::class);
        foreach ($components as $component) {
            $result = $service->findOne($component, uri());
            if (!empty($result)) {
                continue;
            }
            $this->app->make('ui-components')->save(array_get($component, 'name'), $component);
        }
        
        return $components;
    }